[BNM] Couple of quick html/css/DWT questions

Joe Aliferis joe at newforms.co.uk
Tue Jan 15 12:02:16 GMT 2008


1 = yes

.myClass,
.myClass a {
background-image: url(myimage.gif);
background-repeat: no-repeat
background-position: 10px 10px;
}

.myClass a:hover {
background-position: 20px 10px;
}

-----------------------------------------------------

<div class="myClass"><a href="Javascript:;">myLink</a></div>


Joe



paul perrin wrote:
> Hi
>
> For anyone with a minute to spare...
>
> 1) Is there a neat (non-javascript) way of changing the y position of a css
> background image without changing the x (I just want the image to move
> up/down, leaving the sideways pos where it is)
>
> 2) When using a dynamic web template, is there a way to make a link relative
> to the location of the actual pages rather than the template? e.g. to allow
> a single template to be used, and to pick up images from which ever
> directory the final page is located in? (where the final page is HTML - so
> no server side stuff).
>
>
> Cheers!
>
> Paul /)/+)
>   


More information about the BNMlist mailing list. Powered by Wessex Networks