lynxus Posted August 19, 2009 Share Posted August 19, 2009 Hi, How can i have an image on the left and an image on the right side of my page. IE: My page is centered, I can have a fading gradient on the left however how do i get one on the right also? body{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background:#ffffff; background:url(images/rightside.png); background-repeat:repeat-y; } Thanks Graham Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted August 19, 2009 Share Posted August 19, 2009 Hi, How can i have an image on the left and an image on the right side of my page. IE: My page is centered, I can have a fading gradient on the left however how do i get one on the right also? body{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background:#ffffff; background:url(images/rightside.png); background-repeat:repeat-y; } Thanks Graham Why use two background images? Combine the two images into one since you are repeat it up and down. If you want two DIFFERENT Background images that couldn't be combined, you would need to use two divs. Quote Link to comment Share on other sites More sharing options...
haku Posted August 20, 2009 Share Posted August 20, 2009 To elaborate on what the film god said, if your div has a fixed width, use one image. If you need variable widths, you can do it like this: <div id="left_side"> <div id="right_side"> // content </div> </div> You can then set the background images to div#left_side and div#right_side. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.