The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

DIV help needed by imrambi2006-11-19 12:55:59
  Too wide in my Firefox by bobmon 2006-01-24 14:25:17
Actually, it's "just right" _if_ I maximize firefox _and_ don't have the bookmarks sidebar open. Otherwise, it needs to scroll sideways. Is that acceptable, or were you shooting for something that would adjust to the browser's width?

As far as centering stuff, one thing I've run across is this:

  div {
    width 100px; /* or whatever */
    margin: auto;
    align: justify;
  }
So the div isn't wide enough to fill the screen (presumably); the browser will automatically put equal margins on either side - thus centering the div within the browser window; and text inside the div is justified left-and-right (you could also use left, center, or right for the text, as desired).

I think this works more-or-less in most browsers; some websites list additional hackage needed to get it just right under all browsers. Try googling?

[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)