Log In · Register

 
How do I put a Bg in a Div section?
HaNeul-ye
post Sep 6 2006, 08:58 PM
Post #1


"KDrama Obsessed"
*****

Group: Member
Posts: 307
Joined: Mar 2004
Member No: 7,156



I'm using this Layout from CB. I tried to insert
CODE
background-image:url("http://i21.photobucket.com/albums/b267/3b1k7/myspace/snowflakes.gif"); background-repeat: repeat;filter:alpha(opacity=91); -moz-opacity:0.91; opacity:0.91; -khtml-opacity:0.91; } padding:0;}
that into the div part but it won't work. how can i put a bg in a div where i have my info?
 
 
Start new topic
Replies
*mona lisa*
post Sep 6 2006, 09:20 PM
Post #2





Guest






You can use CSS to add a background.
CODE
<style>
DIV.namehere {
background-image: url("http://www.acme.com/images/funnyface.gif");
background-repeat: repeat-y/x;
}</style>

Where it says 'name' modify with the class you specified for that div. If you didn't, then I suggest you do. Edit your div code so the beginning looks something like <div class="namehere" etc... For background-repeat, remove only the x or y and the slash. Y=vertical repeat and x=horizontal repeat.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: