It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming CSS Forum

Tables and browsers?

Tables and browsers?

Postby dirtyface on Thu Jan 15, 2009 2:26 pm

Ok I've just started to use css for my updated site and I'm having serious trouble with the layout!

First off I have a series of 5 rollovers I want to use on my title page. I've set these in a table with 5 rows. I want this table to be relative (fluid) so it moves with the browser but I cant seem to find a way of applying relevant css to the table. Is this possible?

I'm also having trouble when I test my site in different browsers. I've loaded in both ie 5.2 mac and safari but the images are positioned in different places in each even though they have the same css attributes. Any ideas?
dirtyface
 
Posts: 27
Joined: Mon Apr 02, 2007 5:13 pm
Location: Sheffield UK

Re: Tables and browsers?

Postby igjoe on Thu Jan 15, 2009 4:59 pm

1. You want you table to be fluid in what way? The width of the cells or the position? I'm somewhat confused.

2. Browsers render html and css differently. Yes, it sucks, but it's how things work. You need to do some more tweaking to your css to get it to work in multiple browsers. The more specific you can be the better. For example, you may need to specify margins and padding because some browsers add some if it isn't set to a certain number in the css. Play around with your attributes and hopefully you can come up with something.
User avatar
igjoe
100+ Club
 
Posts: 124
Joined: Tue Jan 06, 2009 5:14 pm
Location: Minneapolis, MN

Re: Tables and browsers?

Postby dirtyface on Thu Jan 15, 2009 9:21 pm

I want the position of the table to be fluid. Is that possible do I place the table in a frame?

Can I ask what padding is and does? I dont really understand why there are so many attributes to CSS that can mean the same thing. Padding, border, margin. Don't they all control the distance an image sits from the edge of the screen? Sorry I'm new to CSS

Thanks for the help
dirtyface
 
Posts: 27
Joined: Mon Apr 02, 2007 5:13 pm
Location: Sheffield UK

Re: Tables and browsers?

Postby igjoe on Thu Jan 15, 2009 9:44 pm

I guess i still need more details on what you want the table to do... "fluid" is too vague for me too help you.

As for the css think of it this way. Border = visible border that you can see. kind of like the 1px black borders that surround these forum posts

margin and padding are very similar but are definitely different. Think of it this way. Margin puts space on the OUTSIDE of the cell and padding puts space INSIDE the cell. A good example would be like padded cell in a jail. "Padding" would be how thick the padded walls are inside the cell and the "margin" would be how much space there is in between the walls of the other cells. Hopefully this makes more sense!
User avatar
igjoe
100+ Club
 
Posts: 124
Joined: Tue Jan 06, 2009 5:14 pm
Location: Minneapolis, MN

Re: Tables and browsers?

Postby dirtyface on Fri Jan 16, 2009 11:06 am

I want that table to sit centered in the middle of the page in between two gif images. The gif images have CSS attributes and behave the way I want them to but the table is what I would call static and does not move with the browswer in the way the gif's do. Does that make more sense.

Thansk for your help
dirtyface
 
Posts: 27
Joined: Mon Apr 02, 2007 5:13 pm
Location: Sheffield UK

Re: Tables and browsers?

Postby igjoe on Fri Jan 16, 2009 3:21 pm

hmm kind of... Does it make sense If i say set the table width and height using percents? like width="80%" and height="20%"

Then if you make your browser bigger or smaller it will size proportionately to how big the window is. Is that what you are looking for?
User avatar
igjoe
100+ Club
 
Posts: 124
Joined: Tue Jan 06, 2009 5:14 pm
Location: Minneapolis, MN

Re: Tables and browsers?

Postby dirtyface on Mon Jan 19, 2009 12:20 pm

Yes thanks that is one of the things I'm trying to achieve. However, I'm still not able to centre or apply width and height values to my table for some reason. I want to apply attributes to it like I can my layers but for some reason the CSS attribute box is blank and will not let me apply the same attributes I can to layers. Is this a simple operation that I'm missing?

Thanks again
dirtyface
 
Posts: 27
Joined: Mon Apr 02, 2007 5:13 pm
Location: Sheffield UK

Re: Tables and browsers?

Postby igjoe on Mon Jan 19, 2009 3:27 pm

I guess I haven't worked with layers before. I've mostly done divs and tables using HTML and CSS. It sounds like you are having problems with the program creating your site though. My best advice would be to search for some tutorials on CSS and learn how to hand code. That way you won't be restricted by the limits of your program.
User avatar
igjoe
100+ Club
 
Posts: 124
Joined: Tue Jan 06, 2009 5:14 pm
Location: Minneapolis, MN


Who is online

Users browsing this forum: No registered users and 1 guest