Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. CSS float/align problem - IE5/Win

CSS float/align problem - IE5/Win

Scheduled Pinned Locked Moved Web Development
questionhtmlcsscombeta-testing
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shroom
    wrote on last edited by
    #1

    Hi, I'm trying to rewrite this site of mine using CSS instead of tables for tha layout. I'm trying to start off with the top lighter-green header bar. Here is my test site. And here is some of the CSS in question: #headerL { background: #99ff99; float: left; padding: 0px; font-weight: bold; } #headerR { text-align: right; background: #99ffCC; margin: 0; padding: 5px; font-weight: normal; } Does anyone know why the first line in the text example does not align:right in IE5 like it should? I've tried it the opposite way, floating the right-hand side instead, and it will still align the text the wrong way. Either way works fine in Mozilla. Any ideas? Jeff Sand jsand42 at earthlink dot net

    R 1 Reply Last reply
    0
    • S Shroom

      Hi, I'm trying to rewrite this site of mine using CSS instead of tables for tha layout. I'm trying to start off with the top lighter-green header bar. Here is my test site. And here is some of the CSS in question: #headerL { background: #99ff99; float: left; padding: 0px; font-weight: bold; } #headerR { text-align: right; background: #99ffCC; margin: 0; padding: 5px; font-weight: normal; } Does anyone know why the first line in the text example does not align:right in IE5 like it should? I've tried it the opposite way, floating the right-hand side instead, and it will still align the text the wrong way. Either way works fine in Mozilla. Any ideas? Jeff Sand jsand42 at earthlink dot net

      R Offline
      R Offline
      Roger Wright
      wrote on last edited by
      #2

      I don't know what you're seeing, but I get a right-aligned header in IE6. There are three lines, all right-aligned: ...foo foo \n Next \n next. Given the source lines: theshroom.com - Blitzen foo foo
      Next
      next that's exactly what I'd expect to see. A question, though - was it your intent to nest a

      inside a

      ? [EDIT] Oops - forgot to check the 'Do not treat <'s as HTML tags' checkbox the first time :-O [/EDIT] "Your village called -
      They're missing their idiot."

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups