Previous Message
Next Message

Baseline ruled background

Sent by Ray Leventhal on 9 August 2007 13:01


Aaron Gray wrote:
> How do I make ruled background ?
>
> Something like a z-index'ed div with ruled baselines.
>
> Many thanks in advance,
>
> Aaron
>
>
>   
Hi Aaron,

If I understand you correctly, you're looking to have a background image
that appears as lines across the page horizontally.

If that *is* what you're looking to do, it can be done with the tiniest
image, set as background to body in your css, with repeat-x as a value.

I've done something like this here:
http://www.cprtools.net/

The CSS code that generates the background across the page is here::

//
CSS:

body {
	margin-left: 0px;
	margin-top: 40px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url('images/bg01.jpg');
}


//

The image, bg01.jpg is a 2px by 5px image which repeats.  In this case, the image can repeat both
along the x and y axis, so no 'repeat' instruction is needed as a background image will repeat
natively.

I hope this helps.
Best,
~Ray 


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: