Author Topic: CSS help  (Read 1633 times)

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
CSS help
« on: November 11, 2011, 09:14:55 AM »
Ok... basic div 2 column layout:

Container:
#ctmsContainer {
   margin: 5px 10px;
   width: 100%;
}

Nav:
#nav {
   width: 230px;
   float: left;
}

Content:
#content {
   margin-left: 240px;
}

Works in every browser EXCEPT IE7.  In IE7, that motherfucking content area shifts down below where the nav area ends.

Any ideas??

micah

  • A real person, on the Internet.
  • Ass Wipe
  • Posts: 6915
  • Karma: +58/-55
  • Truth cannot contradict truth.
    • micahj.com
Re: CSS help
« Reply #1 on: November 11, 2011, 09:24:00 AM »
I'm guessing something about your contents within one of those divs.  Is there something thats to wide in #content div?

This worked for me in IE 8's computability mode, with dummy one line content:

Code: [Select]
<style type="text/css">
#ctmsContainer {
   margin: 5px 10px;
   width: 100%;
}


#nav {
   width: 230px;
   float: left;
}


#content {
   margin-left: 240px;
}

</style>

<body>


<div id="ctmsContainer">
<div id="nav">
 here is my nav
</div>

<div id="content">
 here is some content
</div>

</div>
"I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.  I use it to look at pictures of cats and get in arguments with strangers."

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: CSS help
« Reply #2 on: November 11, 2011, 09:24:15 AM »
Nevermind... fixed it by adding 'zoom:1' to the content area.

I swear, everytime I post here I find a fix 2 minutes later.

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: CSS help
« Reply #3 on: November 12, 2011, 02:23:07 AM »
Nevermind... fixed it by adding 'zoom:1' to the content area.

I swear, everytime I post here I find a fix 2 minutes later.

It also would have been acceptable to auto-detect the browser and for any IE hit show a popup linking to FF or Chrome :p
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?