CSS and non IE browser troubles...

Sharky Forums


Results 1 to 6 of 6

Thread: CSS and non IE browser troubles...

  1. #1
    Reef Shark
    Join Date
    May 2001
    Location
    Florida
    Posts
    421

    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

  2. #2
    Sleeps with the Fishes
    Join Date
    Jan 2001
    Location
    Pittsburgh (please click here to donate $5 to city budget)
    Posts
    1,246
    Give us a url....
    Last edited by Skeelo; 02-10-2004 at 02:59 PM.

  3. #3
    Super Bunny Mod muisejt's Avatar
    Join Date
    Dec 2000
    Location
    Nova Scotia, Canada
    Posts
    9,833
    I see one problem in Firefox 0.8

    If your sig is longer than your post then type more.

  4. #4
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    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

  5. #5
    Reef Shark
    Join Date
    May 2001
    Location
    Florida
    Posts
    421
    Originally posted by muisejt
    I see one problem in Firefox 0.8

    D'oh! Well I got that part fixed... at least it now drops where it should in Firefox (still DLing Mozilla).

    But I'm still having the same trouble with the 100% sections running farther than the should and off the page to the right, and they don't even end lined up off the page. Rather they run off and end staggered... quite confusing

    ::edit::

    Picture of problem in Mozilla/Firefox/Netscape:
    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

  6. #6
    Reef Shark
    Join Date
    May 2001
    Location
    Florida
    Posts
    421
    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
  •