home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Cross Browser CSS Issues?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2316
Discussions: 200,945, Posts: 2,379,285, Members: 246,305
Old January 12th, 2004, 01:38 AM   Digg it!   #1 (permalink)
Member
 
Cyberlore's Avatar
 
Join Date: Jan 2003
Posts: 129
Cross Browser CSS Issues?

Banging out the new design for my flagship website. It looks beautiful in IE6 but loading it in the latest version of MozillaFirebird, the CSS doesn't seem to be handled properly. My main concern is that it only shows the first half of the top news post in the middle of the page, and then stops with the content section. The footer and such load just fine (load fine but aren't displayed as i would like...but that's a different story).

I'm wondering if anyone has any solutions to this problem. Why would it break in the middle of the paragraph? There are no tags near where it stops or anything, i'm rather stumped. If you pull up the source, it's all there, it just wont display.

address: http://www.wors.org/indexphp.php

note: most of the links will be down..this is not a problem..this page is simply for design development...

Thanks in advance to any insight.
__________________
:: www.roken.org ::

=| part of the hurricane one network |=
Cyberlore is offline   Reply With Quote
Old January 12th, 2004, 02:11 AM     #2 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 959
hey there

I've just looked at your page from my linux box with the following browsers:

- Mozilla 1.5

- Opera 7.23 (build 518)

- Konqueror 3.14

- Epiphany 1.06 (Mozilla based Gnome browser)

and I'm happy to say I didn't see any of the problems you mentioned - looked fine in all of them

Maybe something up with your Mozilla?

a glimpse of your page under epiphany just in case I missed something

Last edited by the jester : January 12th, 2004 at 02:17 AM.
the jester is offline   Reply With Quote
Old January 12th, 2004, 01:32 PM     #3 (permalink)
Member
 
Cyberlore's Avatar
 
Join Date: Jan 2003
Posts: 129
Thanks a bunch, jester. *Almost* glad to hear it appeared the same for you in your browsers. The major news display problem I mentioned seems non-existant so perhaps my copy of Firebird is just borked.

In the screenshot, the headers of the module boxes on the righthand side should span the width of the box, not just the width of the text.

Also notice how the header image is split drastically between the subaru and wors logos. This should appear as one seamless image (and does in IE).

Anyone with insight into what CSS tags I should be using to get the correct effects in both IE and non/IE browsers?

EDIT: I took the content portion out so it's just the bare layout. I wont be able to look at in in Mozilla til I get home tonight, so for all I know it's the content that's stretching the table. I figured if any of you would care to look at the source, it would be easier to look at w/o the content in the middle:
http://www.wors.org/indexphp_blank.php

Last edited by Cyberlore : January 12th, 2004 at 01:37 PM.
Cyberlore is offline   Reply With Quote
Old January 14th, 2004, 07:11 AM     #4 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 959
I see it now ...

apologies - been down with the 'flu for the last couple of days so I guess my wits were not quite at their sharpest

as a suggestion, how about posting screenies of what you get under ie and mozilla

I'm no html/css wiz myself, but it may move someone better qualified to help

best of luck getting it fixed
the jester is offline   Reply With Quote
Old January 14th, 2004, 09:21 AM     #5 (permalink)
Ultimate Member
 
rpertusio's Avatar
 
Join Date: Nov 2002
Location: Hershey, PA
Posts: 1,349
Send a message via AIM to rpertusio
Quote:
Originally posted by Cyberlore
In the screenshot, the headers of the module boxes on the righthand side should span the width of the box, not just the width of the text.

I'm not sure what you mean... can you explain more, or take a screenshot and circle the part you're talking about?

Quote:

Also notice how the header image is split drastically between the subaru and wors logos. This should appear as one seamless image (and does in IE).

I was able to get these images to line up in Firebird by making the following code changes. I will refer to the line number, so you can find the line easier. (If you use Notepad, you can view line numbers by the View menu -> Status bar.)

Line 223: Changed the width to 237 instead of 207
Code:
<img height="94" width="237" src="indexphp_blank.php_files/header_01.jpg" border="0">
Line 225: Changed the alignment from "center" to "left"
Code:
<td id="rightside" width="150" valign="top" align="left" rowspan="2">
Line 262: Changed alignment from "center" to "left" also
Code:
<td bgcolor="#fafafa" width="150" valign="top" align="left">
There are still some other things that aren't exactly correct, but the code changes above should fix the gap in the logos at the top. I'll take a look at the other stuff later when I have a chance.

- rp
rpertusio is offline   Reply With Quote
Old January 14th, 2004, 05:08 PM     #6 (permalink)
Member
 
Cyberlore's Avatar
 
Join Date: Jan 2003
Posts: 129
Thanks a bunch for your efforts jester and rpertusio. I really do appreciate it.

rpertusio: I can't just make the image 30px wider, as it distorts the image and it puts me over the 780px width constraint.

I fixed the modules on the right hand side (that no one knows what I'm talking about! ) These 'modules' are the boxes on the right side of the website...the site search, news headlines, sponsors, etc. Using <DIV> instead of <SPAN> and changing the doctype to "-//W3C//DTD HTML 4.0 Transitional//EN" the black header for each module now spans the entire width in both IE and MozillaFirebird. (These are the two I have installed at the moment for testing).

And I'm 99% sure I've pinpointed the problem with the gap in the header: the 'padding' attribute. To illustrate the problem, imagine a simple one cell table:

Ok, so you have a table. You set the width of the table to 500 pixels (keep in mind we're using a style sheet). Now you want some padding in the cell so the contents are not touching the border of the table. Let's make it 10 pixels on each side.
-In IE, the padding is layed around the inside of the table and the actual area inside the table is decreased (real world example: putting insulation inside of a room, decreases the area of the room by the width of the insulation). So now the area inside the table where stuff can go is now 480 pixels wide (10 px taken off each side). THIS IS HOW IT SHOULD WORK!
-In Mozilla, the padding is still layed around the inside of the table, but Mozilla says "Wait a sec! I've lost area inside the table! (remember the insulating example?)." So to combat this, Mozilla widens the table until the area inside is equal to the set width. In the real world example, this is like tearing down the walls and building new ones, leaving enough space for the insulation so you still have the same amount of floor space.

<Cyberlore wipes the sweat from his brow>

Now, I'm looking for a solution. The padding problems occur in my <DIV>'s. So with my website, Mozilla is making the modules 10px wider than that should be (turns them into 160 pixel wide boxes) due to a 5px padding on each side. The break in the header occurs because the content portion of the site (the middle) is set for 7px padding on each side (in the case of the content section, i'm just using the style id in the <TD> tag, no <DIV> is used).

Wow, I realize that's a ton to read through, but I just want to make sure I get the point across. I'm really baffled as to my Mozilla seems to handle it this way. If anyone can help me out with my dilema, it would be very appreciated!

(LINK: http://www.wors.org/indexphp.php. If that is dead, I've launched the site, in which case, just visit http://www.wors.org)
Cyberlore is offline   Reply With Quote
Old January 14th, 2004, 05:36 PM     #7 (permalink)
Member
 
Cyberlore's Avatar
 
Join Date: Jan 2003
Posts: 129
I did a little research and found some info that I think will be benificial to everyone.

The W3C specifies the assigned width and height of a box refers to the content area of a box only. This means that all padding, borders, and margins are added to this value.

EX:

div {
width: 500px;
height: 500px;
padding: 20px;
border: 5px;
}

The divs will now be 525 pixels wide following the standards as Mozilla does.

I absolutely hate this, it really does not make sense to me. I guess CSS3 will probably have a setting to choose which way you want your boxes handled, but until then, I need a good workaround! Any thoughts?
Cyberlore is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2916)
Hackers global warming emails (5)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (9)
California Passes Anti-Flat-HDTV Le.. (43)
Regular Build (6)
Is the PSU I received dead? (11)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
cheap AF1,AF1XXV,gucci,jeans,belt,bra.. (0)
Asus P4G8X Mobo (4)
screen resolution vs monitor size (2)
Wireless Televisions. (9)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)


All times are GMT -4. The time now is 03:26 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28