2006-07-23, 09:19 AM
I am trying to position my logo to the left and a banner to the right using CSS. Please check www.qnhl.com.
I am using the following code:
CSS:
----
img.banner {
text-align:right;
position:relative;
left: 28%;
}
img.logo{
text-align:left;
}
HTML:
------
<a href="$settings[bburl]/index.php"><img src="$theme[logo]" alt="$settings[bbname]" border="0" class="logo" /></a>
<a href="http://qnhl.com/showthread.php?tid=556&pid=1470#pid1470"><img alt="Free NHL T-Shirts and Hats" border="0" src="http://www.qnhl.com/images/banners/tshirt-hat.jpg" width="450" height="162" class="banner" /></a>
But the problem is that the left:28% is specific to the resolution of the screen, so a smaller resolution will put half of the banner outside the screen...how can I make the CSS code resolutin independent? I tried different CSS combinations, but none really worked!
Thanks,
GSA
I am using the following code:
CSS:
----
img.banner {
text-align:right;
position:relative;
left: 28%;
}
img.logo{
text-align:left;
}
HTML:
------
<a href="$settings[bburl]/index.php"><img src="$theme[logo]" alt="$settings[bbname]" border="0" class="logo" /></a>
<a href="http://qnhl.com/showthread.php?tid=556&pid=1470#pid1470"><img alt="Free NHL T-Shirts and Hats" border="0" src="http://www.qnhl.com/images/banners/tshirt-hat.jpg" width="450" height="162" class="banner" /></a>
But the problem is that the left:28% is specific to the resolution of the screen, so a smaller resolution will put half of the banner outside the screen...how can I make the CSS code resolutin independent? I tried different CSS combinations, but none really worked!
Thanks,
GSA