Reply
Stupid IE! <td> widths
Old 02-20-2008, 09:45 PM Stupid IE! <td> widths
Skilled Talker

Posts: 92
http://balloonfightforever.bit-digita.com/emotes.asp

In FF, it looks perfect, and in IE, it looks all screwed up(because its not accepting the set width, and just making every column even). Is there a way to get around this?

heres the external style sheet:
http://balloonfightforever.bit-digita.com/style.css


Last edited by Skeddles : 02-21-2008 at 12:23 AM.
Skeddles is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-21-2008, 09:57 AM Re: Stupid IE! <td> widths
LadynRed's Avatar
Super Moderator

Posts: 6,553
Location: Tennessee
Put a proper DOCTYPE on your pages.

Part of the problem is that you have not defined the width and height on the image you've got stuck in the table cell. You should ALWAYS define width and height, it's proper coding. Without it, you're forcing the browser to guess.

Tables will ALWAYS stretch to fit what you put in them, so you can't stick something in a cell that's larger than your specified width.

You shouldn't be using tables for layout, you should learn CSS for layout.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 01:41 AM Re: Stupid IE! <td> widths
Skilled Talker

Posts: 92
Quote:
Originally Posted by LadynRed View Post
Put a proper DOCTYPE on your pages.

Part of the problem is that you have not defined the width and height on the image you've got stuck in the table cell. You should ALWAYS define width and height, it's proper coding. Without it, you're forcing the browser to guess.

Tables will ALWAYS stretch to fit what you put in them, so you can't stick something in a cell that's larger than your specified width.

You shouldn't be using tables for layout, you should learn CSS for layout.
I always forget the doctype. I added it now.
Even with no images, it still doesn't work.Plus the only one was the banner, and I was sure to make it smaller than the cell.



Every one says to use CSS, but I just love tables so much(well, in Firefox anyway). And i don't really understand how to use divs. They always go to the next line. And tables feel more secure, because they hold every thing together.

Last edited by Skeddles : 02-23-2008 at 01:59 AM.
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 10:18 AM Re: Stupid IE! <td> widths
LadynRed's Avatar
Super Moderator

Posts: 6,553
Location: Tennessee
I can understand your resistance to moving away from tables, but the fact is, tables were never meant for layout, they were, and are, meant for data. Once you learn the proper way to use CSS, you won't have the problem you describe - 'they always go to the next lin' - no, they don't. Tables are slower, they're a maintenance nightmare, and they present their own set of problems.

Try a book like this one to get away from tables: http://www.sitepoint.com/books/html1/

You might also want to read this article:
http://www.hotdesign.com/seybold/everything.html


Quote:
because they hold every thing together.
Sorry, not a valid argument - divs hold everything together, probably better than tables !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 11:47 AM Re: Stupid IE! <td> widths
Webmaster Talker

Posts: 660
Location: Kokkola, Finland
Quote:
because they hold every thing together.

usually until you resize the text then they pull apart
davemies is online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-23-2008, 11:37 PM Re: Stupid IE! <td> widths
Skilled Talker

Posts: 92
http://skeddles.com/a.htm so why are these on different lines
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 12:30 AM Re: Stupid IE! <td> widths
joder's Avatar
Flipotron

Posts: 6,443
Name: James
Location: In the ocean.
because you have two div's in a row. Add a container div around the two you have and use floats.

http://www.webmaster-talk.com/css-fo...sites-2-a.html
Look at the links under Layouts
joder is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 02:31 AM Re: Stupid IE! <td> widths
Webmaster Talker

Posts: 660
Location: Kokkola, Finland
Quote:
Originally Posted by joder View Post
because you have two div's in a row. Add a container div around the two you have and use floats.

http://www.webmaster-talk.com/css-fo...sites-2-a.html
Look at the links under Layouts
or just float one of the divs
davemies is online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-24-2008, 01:21 PM Re: Stupid IE! <td> widths
Skilled Talker

Posts: 92
Okay, i completely redesigned my site, using only divs. Here it is: http://balloonfightforever.bit-digita.com/csstest.html

My only problem is the not centering <body>(any tips).

I checked in both browsers too(worked).
(If your bored you could check over the code to make sure i didn't do anything stupid.)


So you guys win, divs are better.
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 01:54 PM Re: Stupid IE! <td> widths
Webmaster Talker

Posts: 660
Location: Kokkola, Finland
see Centering a layout here http://www.webmaster-talk.com/html-f...resources.html
davemies is online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-24-2008, 02:40 PM Re: Stupid IE! <td> widths
Skilled Talker

Posts: 92
Got it, it works.

But now my site wont stretch(another reason I liked tables)

Last edited by Skeddles : 02-24-2008 at 07:21 PM.
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 09:35 PM Re: Stupid IE! <td> widths
joder's Avatar
Flipotron

Posts: 6,443
Name: James
Location: In the ocean.
Because your using absolute widths. When I have two columns, I only specify the width on the menu column and let the other one stretch to the width of my container div.

A couple of sites w/ examples.
http://www.glish.com/css/
http://www.alistapart.com/articles/practicalcss/
joder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Stupid IE! <td> widths
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17708 seconds with 12 queries