5 replies [Last post]
charlieconcepcion
Offline
Enthusiast
Last seen: 15 years 15 weeks ago
Joined: 2007-04-03
Posts: 102
Points: 0

hey guys... I'm having issues with margins on Firefox..

Everything looks good on IE7, but on firefox the margins between content and the menu are not being followed as i put in the CSS code. Instead it puts margin for the whole container instead of the content div itself..

here's the link:

http://ctimesmedia.com/charlieconcepcion/

here's the source:

http://ctimesmedia.com/charlieconcepcion/css/global.css

any suggestions?

DanA
DanA's picture
Offline
Elder
Last seen: 12 years 39 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

Did you try margin: 2em

Did you try margin: 2em auto 0; ?

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 48 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Firefox was simply

Firefox was simply displaying as you told it. Any time there is a difference between IE and Firefox, IE got it wrong. Always develop in Firefox. IE's bugginess can be dealt with after you have good code.

html, body {
  margin: 0;
  padding: 0;	
  }

#container {
  width:750px;
  background-color: #E1EAEB;
  margin: 0 auto;
  }

#header {}

#menu {}

#main_content {
  width:375px;
  background-color: #fff;
  height: 400px;
  border-width: 1px 1px 0;
  border-style: solid;
  border-color: #243136;
  margin: 2em auto 0;
  }

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

charlieconcepcion
Offline
Enthusiast
Last seen: 15 years 15 weeks ago
Joined: 2007-04-03
Posts: 102
Points: 0

i will test this out today,

i will test this out today, and see what happens. I will keep yall posted

charlieconcepcion
Offline
Enthusiast
Last seen: 15 years 15 weeks ago
Joined: 2007-04-03
Posts: 102
Points: 0

u guys are genius! thx it

u guys are genius! thx it worked

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 41 weeks 10 hours ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Superb, thanks for letting

Superb, thanks for letting us know Laughing out loud

Verschwindende wrote:
  • CSS doesn't make pies