Dynadot โ€” .com Transfer

HTML - DIV tag

Spacemail by SpaceshipSpacemail by Spaceship
Watch

smashin

Established Member
Impact
0
I need some help with the DIV tag. I am having trouble figuring out where exactly I place the code. In the header?

example:

div.over {
overflow: scroll;
height: 100px;
width: 100px;
}
...
<div class="over">
<img src="/images/clouds.gif">
</div>

does the upper portion(above the ...) go in my head?

Thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
0
•••
ahh i get it. So I create a seperate css and the div tag would be calling the css and formating the text/images accordingly.

Now i guess i need to learn how to create a css.

EDIT:

So which would be better to use- in the header or create a css and have it called inlin with the html in my table?
 
Last edited:
0
•••
depends how many pages you are to use the code on. If more than one, on a seperate css sheet, if not, in the header.
 
0
•••
cool. thanks guys! I figured out how to get it to work in the head using <Style> .x {values} So now ive got that part working.

My next question is:
Can I modify the appearance of the scroll bar? I am using {overflow: scroll} and would like to make it look a little cleaner.

When I was working with <iframe> i liked how i could clean it up a little. Im not really liking this DIV stuff so far.
 
0
•••
unfortunately I know very little about CSS as I hardly ever write style sheets but a good place to look would be somewhere like:-

http://w3c.org/TR/CSS21/

this is the official standards for it so would be the best place.
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back