|
-
CSS and non IE browser troubles...
I've recently got around to working on an site using CSS... the first one I've worked out that won't be using tables for the layout. All was going great and smooth until I started testing my test page in browsers other than IE6. In Netscape and Mozilla things go to poo. Content that is supposed to span "100%" spans off the page to the right and ends seemingly randomly (other "100%" content won't span exactly as far as another)... if that makes sense.
Here's an example of what the style sheet looks like:
Code:
.textcontent {
color: #000000;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
text-align: justify;
background-color: #BFBFBF;
padding: 20px;
width: 100%;
border-top: solid 1px #000000;
border-left: solid 2px #000000;
border-right: solid 2px #000000;
border-bottom: solid 1px #000000;
}
.textheadline1 {
background-color: #B3B3B3;
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
text-align: left;
font-weight: bold;
padding: 10px;
width: 100%;
border-bottom: solid 1px #000000;
border-left: solid 2px #000000;
border-right: solid 2px #000000;
border-top: solid 2px #000000;
}
Anything in the code above that would work in some browsers and not others? The book I've been using as reference seems to imply there shouldn't be a problem... but this is a really cheap book, lol.
The page in question is located here: http://www.deuterium.cc/shoot_naked/
Thanks in advance, and bear with my CSS new-ness
| Processor | Intel Pentium 4 @ 2800 MHz | Motherboard | ABIT IC7-Max3 | Memory | 2 GB Corsair XMS PC3200 DDR | Graphics | ATI Radeon 9800 Pro | OS/Prog HDD | W.D. Raptor 36GB (10k) SATA | Storage HDD | Seagate 160GB (7200) SATA | Burner | Lite-On 52x24x52 CDRW | DVD-ROM | Lite-On 16x DVD | Sound Card | Philips Acoustic Edge | Speakers | Klipsch ProMedia 2.1 | Flash Media | Lian-Li Flash Media Bay | Display | Dual NEC 22" Flat CRT | Case/PSU | Lian-Li PC-65B w/ Antec 430W | O.S. | MS Windows XP Pro | Printer | Epson Stylus Photo 2200
-
Last edited by Skeelo; 02-10-2004 at 02:59 PM.
-
Super Bunny Mod
I see one problem in Firefox 0.8
If your sig is longer than your post then type more.
-
NullPointerException
You can watch as IE loads the page, it's initially in the same position as the Mozilla/Firebird version, but then it jumps down to uncover the top graphic.
Open Source is free like a puppy is free.
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Understanding Evolution
-
Last edited by Handyman; 02-10-2004 at 07:18 PM.
| Processor | Intel Pentium 4 @ 2800 MHz | Motherboard | ABIT IC7-Max3 | Memory | 2 GB Corsair XMS PC3200 DDR | Graphics | ATI Radeon 9800 Pro | OS/Prog HDD | W.D. Raptor 36GB (10k) SATA | Storage HDD | Seagate 160GB (7200) SATA | Burner | Lite-On 52x24x52 CDRW | DVD-ROM | Lite-On 16x DVD | Sound Card | Philips Acoustic Edge | Speakers | Klipsch ProMedia 2.1 | Flash Media | Lian-Li Flash Media Bay | Display | Dual NEC 22" Flat CRT | Case/PSU | Lian-Li PC-65B w/ Antec 430W | O.S. | MS Windows XP Pro | Printer | Epson Stylus Photo 2200
-
Update:
I got the staggered edges fixed. Apparently the "width: 100%" parts of the CSS code aren't needed unless you want to go smaller than the full width.
Execpt for my menu bar... without the 100% stays just as wide as the text, but with the 100% spans off the page.
At least I'm getting closer...
Last edited by Handyman; 02-10-2004 at 09:12 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|