Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 176
Trades: 0
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 01:23 AM..
Skeddles is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-21-2008, 10:57 AM Re: Stupid IE! <td> widths
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 02:41 AM Re: Stupid IE! <td> widths
Extreme Talker

Posts: 176
Trades: 0
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 02:59 AM..
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 11:18 AM Re: Stupid IE! <td> widths
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 12:47 PM Re: Stupid IE! <td> widths
Super Moderator

Posts: 1,576
Location: Kokkola, Finland
Trades: 1
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-24-2008, 12:37 AM Re: Stupid IE! <td> widths
Extreme Talker

Posts: 176
Trades: 0
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, 01:30 AM Re: Stupid IE! <td> widths
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
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, 03:31 AM Re: Stupid IE! <td> widths
Super Moderator

Posts: 1,576
Location: Kokkola, Finland
Trades: 1
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, 02:21 PM Re: Stupid IE! <td> widths
Extreme Talker

Posts: 176
Trades: 0
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, 02:54 PM Re: Stupid IE! <td> widths
Super Moderator

Posts: 1,576
Location: Kokkola, Finland
Trades: 1
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, 03:40 PM Re: Stupid IE! <td> widths
Extreme Talker

Posts: 176
Trades: 0
Got it, it works.

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

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

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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 1.76675 seconds with 12 queries