![]() Preserved Topic: find the center (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: oslo, Norway |
![]() i have a picture that i want to be on the center of the page, how do i do this without tabels? |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: oslo, Norway |
![]() in this case it want work, it's a litel hard to explain, but how do you code the center script? |
Bipolar (III) Inmate From: Berlin, Germany |
![]() <div style="font: 11px #000 arial; width: 100%; height: 100%; text-align: center;">blabla</div> |
Bipolar (III) Inmate From: |
![]() 'align' for horizontal alignment |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() document.body.clientWidth is a simpler way to do it in IE than giving the body an ID. |
Paranoid (IV) Inmate From: oslo, Norway |
![]() well now i got the screen size height and width right? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Putting a value into a variable is always a simple matter of saying |
Maniac (V) Mad Scientist From: the west wing |
![]() you can set it in the body background using css... code: body { |
Paranoid (IV) Inmate From: oslo, Norway |
![]() Thanks. it works |
Neurotic (0) Inmate Newly admitted |
![]() Osaires your question wasn't silly, that's what we are here for |