Okay, so I have been fighting with
the new website a bit, and so far I have only been able to get one of two things to work for the individual stories, either centering or variable width. That is -- originally I wanted to make it so that the text would have a maximum width so it wouldn't go sprawling all across the browser, but I wanted to leave it
(
Read more... )
Comments 28
* the page should have a DOCTYPE so that browsers know which version of the spec you're using -- HTML 4.01 Transitional is probably your best choice
* this line in the CSS is invalid: width: expression(document.body.clientWidth > 500? "500px": "auto" ) -- you can't use JS (There may be something like this in CSS 3, but it's not prime time yet.)
* to center variable width page content, set the left and right margins of the body to a percentage (or do the same with padding, depending on where you want that red line)
* to center fixed-width page content, set the left and right margins of the container to "auto". Only this won't work in IE 5.x, so you have to use a hack to get around it: text-align: center on the body and then text-align: left (or whatever) on the container
* IE6 does not honour max-width, sadly. I can't remember offhand if there's a good hack for it.
Just ping me if you want any help with this; this is what I do all day.
Reply
Reply
width: 100%;
margin-left: 20%;
margin-right: 20%;
Reply
Reply
Reply
Reply
Reply
Reply
Reply
In firefox you can "copy link location" which does the same thing.
I always get weirded out now when I browse in ie instead of firefox, because I'm so used to the tabs and adblock and easily changing font sizes.
Reply
Leave a comment