|
|
|
|
![]() ![]() |
Jan 15 2007, 08:57 AM
Post
#1
|
|
|
Mad Scientist of 2006 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 750 Joined: 27-April 06 From: Washington State in the USA Member No.: 22,661 ![]() |
I have my site http://boozkerstweaks.trap17.com and just when i thought i had everything perfect i just had to go to my Windows computer to check it because i made it on my mac and tested it in:
Netscape, Opera, Safari, and Firefox. I only had stupid IE and it displayed it horribly wrong. There is nothing wrong with the CSS. I checked the mathematics of it and it seems fine. It's like it's displaced. The header and the rest of the site are disconnected. There is also a white line down the right side of the page. I think it might have something to do with the CSS's background-color or border. This really frustrates me style sheet is: http://boozkerstweaks.trap17.com/style.css This post has been edited by BooZker: Jan 15 2007, 08:57 AM |
|
|
|
Jan 15 2007, 09:23 AM
Post
#2
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,463 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
I think the problem is you have many classes but not enough structure--I hope that is the right expression.
Try defining your body to a specific width something like CODE #body { margin: 0 auto; width: 800px; padding: 0 0; } and then define a header div as ID etc. So the basic structure of your site would be something like: HTML <body> <div id="header"> </div> <div id="content"> <div id="right_menu"> </div> </div> </body> This way, they are all aligned within the "body" and cannot wander about. You can even do DIV for left and DIV for right and use float to divide content from menu. |
|
|
|
Jan 15 2007, 09:27 AM
Post
#3
|
|
|
Mad Scientist of 2006 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 750 Joined: 27-April 06 From: Washington State in the USA Member No.: 22,661 ![]() |
OK i will try this. In other words though you are just saying that i should move the CSS tags in the order that they should be read and then set a specific width for the body?
I wish IE wasnt the most used browser! |
|
|
|
Jan 15 2007, 09:36 AM
Post
#4
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,463 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
I don't think order of appearance has nothing to do with it. But looking at your css file, you have bunch of CLASS (.tag) but nothing that definds the ID tags...
Since I myself is learning css, my description could be wrong. But what I know is that you need to confine your DIV's within BODY with set width. |
|
|
|
Jan 15 2007, 09:39 AM
Post
#5
|
|
|
Mad Scientist of 2006 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 750 Joined: 27-April 06 From: Washington State in the USA Member No.: 22,661 ![]() |
hmm alright. I will go and set the header and footer divs to 758 and then main to 600 and right_side to 158 and see if this fixes the problem.
|
|
|
|
Jan 15 2007, 10:16 AM
Post
#6
|
|
|
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 6,419 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() |
Well after trying some stuff out I finally got it. So give me a " I LOVE YOU SM"
CODE .main { width: 758px; background:#000066; padding: 0px; border-bottom:none; } I predicted it was margins or padding |
|
|
|
Jan 15 2007, 10:24 AM
Post
#7
|
|
|
Mad Scientist of 2006 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 750 Joined: 27-April 06 From: Washington State in the USA Member No.: 22,661 ![]() |
GOD! Everytime it's so simple and i can't find it. You have to give me some slack though. I have only been making graphics and sites for a little over a year now.
|
|
|
|
Jan 15 2007, 06:22 PM
Post
#8
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,965 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
I find that using this code:
CODE body { margin:0; padding: 0;} and then setting specific margins and paddings in the sheet helps to eliminate most problems. Each Browser has its own default settings for margins and padding, so eliminate the defaults and the browsers will all treat the page the same.As for the order of the html content on the page, I find that it is best to have the div's in the html code in the order which they appear on the page. For example, insert the float:left before the float:right for the same parent element. Otherwise, there is some confusion between browsers and the way they are rendered. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|