Log In · Register

 
very confused on divs
ima_fake_
post Jul 7 2006, 11:49 PM
Post #1


hollyann marie
****

Group: Member
Posts: 268
Joined: Aug 2005
Member No: 199,364



ok. well im new with divs. im trying to follow the little simple div overlay thing. now i started with doing the CSS thing and thats all set. soo now do i need to use a code to hide my whole profile er something like...
CODE
<style type="text/css">
    table, tr, td {background:transparent;}
    table table table table, table table table table td.text, table.contactTable {display:none;}
    td.text table, .orangetext15 {visibility:hidden;}
    td.text table table {display:inline; visibility:visible;}
    td.text td.text table {display:none;}
    div b font font, div font font u {display:none;}
.whitetext12 { display: none; }
.nametext { display:none;}
</style>


ok now where it says
QUOTE
For the image, you only need to change the width and the height to fit your image.


for what image? is that suppose to be the bacground of ur whole page or just that div and when it says ::

QUOTE
For the content, you can change the class of the div, the left alignment, top alignment, width, height, and overflow. If you want the div to have a scrollbar, use this div code. Open the image in Microsoft Paint to get the alignments.


can someone explain the whole class of div. and how u kno about making it left alignment top and width and height and overflow?


sry this is going to take alot of explaining but if someone wants to help id much appriciate!!


thank guysss...

biggrin.gif biggrin.gif
 
 
Start new topic
Replies
freeflow
post Jul 8 2006, 12:26 AM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Hide your profile with the code up there.
The image thing is only if you made an image and your aligning your div stuff. If you don't have an image don't follow that step.


A div looks like this: (this goes in style tags)
CODE
.divnamehere{
position: absolute;
left: #px;
top: #px;
width: #px;
height: #px;
}


and (this does not go in style tags)

CODE
<div class="divnamhere">
content goes here
</div>


Tahts a div you put random numbers in top & left until your content box is aligned where you want it. Height & Width are the width and height of the div box. If you want you can add other properties such as background-color, etc in the style code. For div name you make one up. But you have to be consistent. Like the second code div has to match its corresponding style tag div name. Get it?

I'll explain more if you don't get it, but don't make it too complicated. Its an easy concept.
 

Posts in this topic


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