Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

Margins Problem


  • Please log in to reply
2 replies to this topic

#1 scouseflip

scouseflip

    HR 4

  • Active Members
  • PipPipPipPip
  • 201 posts
  • Location:North West, England

Posted 08 November 2007 - 10:14 AM

I have a problem with a page I am trying to make. I normally use an overall duv called 'canvas' and place all content within this. I use
CODE
margin: 0 auto;
on 'canvas' to centre the page - but in this case it has not worked and I can't figure out why.

The page in question is ht tp://www.haddonhouse.co.uk/haddonhouse/fabrics.aspx...

Can anyone shed some light on what I'm doing wrong please?

#2 Dimmerswitch

Dimmerswitch

    HR 3

  • Active Members
  • PipPipPip
  • 72 posts
  • Location:Madison, Wisconsin

Posted 08 November 2007 - 11:03 AM

Hi Scouse-

You don't specify, but I expect you're only seeing this on some browsers (most likely older IE/Win). I see things center-aligned as I'd expect when looking at this in Opera:



If that is in fact what you're seeing, the fix is easy enough. Just update:

CODE
body
{}

#canvas
{
    width:750px;
    margin:0px auto;
}

to

CODE
body
{text-align:center;}

#canvas
{
    width:750px;
    margin:0px auto;
       text-align:left;
}


Hope that helps.

#3 scouseflip

scouseflip

    HR 4

  • Active Members
  • PipPipPipPip
  • 201 posts
  • Location:North West, England

Posted 08 November 2007 - 12:07 PM

Cheers - Worked a treat!

..and apologies for omitting the browser info - it is indeed IE6 I'm using!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users