If you are just using a solid color, I don't see why you just don't use a 1x1 side file....
because i have it set within a <span> tag; and it has a set height, and to create the same effect it would require more coding, and therefore increases file size, and code starts to look messy
That would require another <div> tag to be placed and more css coding; this returns a larger file size.Can't you just give it a height:15px value?
If you want to go down the image route, use 1x1 px image, and stretch it in your HTML.
If you want the most efficient method, use CSS and not an image.
Instead of using span, just put in a blank div, set the background and define a height and width...
so let's say i need to repeat the section 15x:you do realise that a larger file size sometimes means more efficient code?
The 'additional code' should be no more code than actually putting in the image in the first place anyway
one thing i've noticed in the past w/ me diablo, is that background images don't stretch the span/div to the image's height. i've had to set a height w/ them all the time or it would just enlarge enough to fit the text/content in them
ah, ur right . i don't play w/ span tags much, because i normally don't find a use for them, other than formatting text inline for colors and font-styles/bold.thanks for the concern, but that isn't a problem. Also you can't define a <span> tags width and height, unlike a <div> because it is not a block element