Log In · Register

 
Background-div, inside a div area
Lightner
post Jun 24 2005, 11:13 PM
Post #1


Im Gavin HI!!
*****

Group: Member
Posts: 802
Joined: Mar 2005
Member No: 111,644



so if i make a div absolute or any other kind is it possible to put a different background for each div? i believe a nick name for it is Fake Table, its where a div layout is created but for the link stuff there are set background and bodys. I do not have an example but if you know what it is thanks ^_^.
 
 
Start new topic
Replies
talcumpowder
post Jun 25 2005, 12:45 AM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



..... Not exactly sure what you're talking about.... But here's my stab at it. =/
Yeah.... You can move the divs around and whatnot... But do you get the basic idea?
BTW, you can do this with just divs and no stylesheet.... But I like stylesheets.
 
moorepocket
post Jun 25 2005, 08:05 PM
Post #3


Death is a promise given to us at birth
*******

Group: Official Designer
Posts: 4,757
Joined: Mar 2004
Member No: 7,459



QUOTE(nyah-nek0 @ Jun 25 2005, 12:45 AM)
..... Not exactly sure what you're talking about.... But here's my stab at it. =/
CODE
<style type='text/css'>
#one{background-image: blah.gif;}
#two{background-image: boo.gif;}
</style>

<div class="one">
I'm div one. =P
</div>

<div class="two">
I'm div two. =P
</div>
Yeah.... You can move the divs around and whatnot... But do you get the basic idea?
BTW, you can do this with just divs and no stylesheet.... But I like stylesheets.

*

That code is wrong. When you put a number sign in front of something, that means that it's an ID. So it has to be like this.
QUOTE
<div id="one">
I'm div one. =P
</div>
 

Posts in this topic


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