What exactly is the DIV tag?
I have found some definitions of it but still dont get what it does.
Just learnt CSS, my head hurts.
What exactly is the DIV tag?
I have found some definitions of it but still dont get what it does.
Just learnt CSS, my head hurts.
(\__/)
(='.'=)
(")_(")
divides thingsYou use them to divide certain areas so they can do certain things. Simple as.
so kina like making a mini page within a page if u get my meaning, its completely seperate from the rest of the page? Does the CSS file still affect it?
EDIT: What is this: - class="greek" - it appears in the link <a> tag.
Im trying to adapt this: http://glish.com/css/1.asp
Is this the best way of going about it?
Last edited by nvening; 14-05-2005 at 07:07 PM.
(\__/)
(='.'=)
(")_(")
use a CSS to define the style between <DIV> and </DIV>. Look at the source for this forum, there are plenty of DIV tags
A div is a block level element and should be used for creating boxes.
<a class="greek"> would assign the 'greek' class to the tag, so that that individual link could have a different colour etc. to the site default.
ah sorry i was wrong, the greek thing is in the <p> tag:- <p class="greek">
(\__/)
(='.'=)
(")_(")
The CSS class tag can apply to just about anything, from tables, to fonts, to links, to the body tags. Using a .css file and linking from your webpage, you can specify every parameter which is employed by each element within your HTML, from border size and colour, to margins, font types, and cell padding...
Stop me if I'm being obvious....
An example of best practise for CSS would be to apply your general site font to the body tag. So lets say you want to use courier as the default font for the entire site, you would create a class called BodySiteDefault or somesuch and stick the reference in your body tag <body class=BodySiteDefault>, and from then on every <font> element would be default display as courier.
Remember that CSS is hierachial, which means you can can overrule any previous class (such as the body tag class) by inserting a different class lower down (such as a table tag, or cell, or even a font tag).
Last but not least, StyleSheets are the ultimate time savour, so stick with them...they're as close to wonderful as web development gets....
sig removed by Zak33
Yes indeed they are, I made a site for a computer science project I did last year. There were about 30 pages in it, and instead of trying to put style into each one, I copied the .CSS link in the header across to each page...boom, instantly every page was a lovely shade of blue with the font I like!Last but not least, StyleSheets are the ultimate time savour, so stick with them...they're as close to wonderful as web development gets....
And if you use includes then you only need one link to the CSS file as i have doneOriginally Posted by tommylittleboy@
![]()
Just a small correction, if you want to change the body style you would simply apply a style to the body tag, you wouldn't create a class for it e.g. your style sheet would readAn example of best practise for CSS would be to apply your general site font to the body tag. So lets say you want to use courier as the default font for the entire site, you would create a class called BodySiteDefault or somesuch and stick the reference in your body tag <body class=BodySiteDefault>, and from then on every <font> element would be default display as courier.
It also wouldn't affect every <font> element. Using style sheets you shouldn't have the <font> tag anywhere in your site.Code:body { font-family: Courier New;}
A div is basically a block level element i.e. a box on your screen. It's not a page embedded in your page, it's simply a box that contains some content. If you apply a class to that div then the div itself and all the content in it will inherit that style e.g. changing the font colour, changing the div background colour and so on
I think i got the css underway, so i have started a logo. This is basically what i want it to look like. But how do i get all the cool affects like the hexus logo and the Nvidia logo? I got photoshop.
![]()
Thanks
(\__/)
(='.'=)
(")_(")
Google for photoshop tutorials![]()
ok i see, first off though, how do ijust select the circle as the effects to it the square around the picture
thanks
(\__/)
(='.'=)
(")_(")
managed it![]()
(\__/)
(='.'=)
(")_(")
jebus, i dont know where to start! Anyone know of good sites that will start off with the basics?
(\__/)
(='.'=)
(")_(")
There are currently 1 users browsing this thread. (0 members and 1 guests)