Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

HTML - DIV tag

NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
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
Close
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
Close
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
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back