On 5/4/12 4:50 PM, Todd Howe wrote:
Hi, I'm new ;)


Welcome.

[...]

The CSS wasn't commented though, and since then I've never been able
to figure out how to get things centered properly on the front page
for all screen sizes. They're too far to the left when x>~1280, too
far to the right when x<~1280

I think it has something to do with how I'm using percentages to try
and accommodate all screen sizes. But, erm, help?

I've pasted the relevant (?) chunk of CSS, below. I've also pasted
the full CSS here: http://pastebin.com/m9mVibtE

body { background: #000000 url("images/texture_background.jpg")
repeat scroll center top;      font-family:"Trebuchet
MS",sans-serif; text-align:center; }

/* #fixed { width:80;  /* you can use px, em or % text-align:left; }
*/


#wrapper { margin-left: auto; margin-right: auto; position:relative;
text-align:center; }


A bit tough without the HTML, but I'm guessing. I think you want a width
on #wrapper for the auto margins to center it. You likely want
text-align: left; on there instead of text-align: center; as well.

If this is BS, kindly give a link to a live example.
--
Cordially,
David

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to