So I did some research, trying to find out how to asign a background image to articles. reason is my site has black background but i want articles to have black text so its easy on the eyes, how can I assign a background image just for the articles
reason i dont just asign an background image for the main block is because im using a dropdown menu the background image ends up going under the menu.
Asigning a background image to articles [solved]
Asigning a background image to articles [solved]
Last edited by plushett on Sun 26. Jun 2005, 10:30, edited 1 time in total.
- Oliver Georgi
- Site Admin
- Posts: 9919
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
I figured it out!
I just added a background image to the content tag like so:
<div style="margin-left:10px; margin-right:10px; margin-top:5px; margin-bottom:10px; background-image:url(http://eccentriclife.com/cmpages/pictur ... ground.jpg)">{CONTENT}</div>
at least it worked...made it so the only part of the page with a background
was the content....pretty handy for working with pages that have black
background...
Got to love the trial and error method of learning...heheh...
<div style="margin-left:10px; margin-right:10px; margin-top:5px; margin-bottom:10px; background-image:url(http://eccentriclife.com/cmpages/pictur ... ground.jpg)">{CONTENT}</div>
at least it worked...made it so the only part of the page with a background
was the content....pretty handy for working with pages that have black
background...
Got to love the trial and error method of learning...heheh...
- Oliver Georgi
- Site Admin
- Posts: 9919
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
always create a class
better:
Oliver

Code: Select all
<div style="margin-left:10px; margin-right:10px; margin-top:5px; margin-bottom:10px; background-image:url(http://eccentriclife.com/cmpages/picture/center_background.jpg)">{CONTENT}</div>
Code: Select all
.contentDiv {
margin-left:10px;
margin-right:10px;
margin-top:5px;
margin-bottom:10px;
background-image:url(http://eccentriclife.com/cmpages/picture/center_background.jpg);
}
Code: Select all
<div class="contentDiv">{CONTENT}</div>