PDA

View Full Version : Adjustable header image?


Aadil
02-16-2010, 02:40 AM
Hi customising a new skin for my board and I needed some help with my header.

Currently have a header image that is 1000x600 now on my screen it looks bloody good.. coz i have a 26" HD Samsung at a res of 1920 x 1200 but I tried viewing with a smaller computer and coz of the header there is a massive scroll bar at the bottom.

Now I was wondering if theres a way to make the image auto resize to fit the screen so theres no scroll bar for left to right..

Current code is


<div class="headerWrap">
<div class="logo">
<center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="images/styles/DarkMatter/misc/header.jpg"/></a></div></center>


--------------- Added 1266376073 at 1266376073 ---------------

Bump? anyone

Hell Bomb
02-18-2010, 03:43 PM
Here try this

<img src="images/styles/DarkMatter/misc/header.jpg" width="100%" height="100%/>

It will tell the image to only stretch the the size of the container div. So if the size of the div that wraps around it changes the image will adjust to that size.