Page 1 of 2 12 LastLast
Results 1 to 16 of 17

Thread: Div

  1. #1
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts

    Div

    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.
    (\__/)
    (='.'=)
    (")_(")

  2. #2
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    divides things You use them to divide certain areas so they can do certain things. Simple as.

  3. #3
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    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.
    (\__/)
    (='.'=)
    (")_(")

  4. #4
    Senior Member
    Join Date
    Mar 2005
    Location
    Letchworth Garden City
    Posts
    256
    Thanks
    0
    Thanked
    0 times in 0 posts
    use a CSS to define the style between <DIV> and </DIV>. Look at the source for this forum, there are plenty of DIV tags

  5. #5
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    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.

  6. #6
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    ah sorry i was wrong, the greek thing is in the <p> tag:- <p class="greek">
    (\__/)
    (='.'=)
    (")_(")

  7. #7
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom
    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

  8. #8
    Senior Member
    Join Date
    Mar 2005
    Location
    Letchworth Garden City
    Posts
    256
    Thanks
    0
    Thanked
    0 times in 0 posts
    Last but not least, StyleSheets are the ultimate time savour, so stick with them...they're as close to wonderful as web development gets....
    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!

  9. #9
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Quote Originally Posted by tommylittleboy@
    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!
    And if you use includes then you only need one link to the CSS file as i have done

  10. #10
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    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.
    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 read
    Code:
    body {
    font-family: Courier New;}
    It also wouldn't affect every <font> element. Using style sheets you shouldn't have the <font> tag anywhere in your site.

    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

  11. #11
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    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
    (\__/)
    (='.'=)
    (")_(")

  12. #12
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Google for photoshop tutorials

  13. #13
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    ok i see, first off though, how do ijust select the circle as the effects to it the square around the picture
    thanks
    (\__/)
    (='.'=)
    (")_(")

  14. #14
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    managed it
    (\__/)
    (='.'=)
    (")_(")

  15. #15
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    jebus, i dont know where to start! Anyone know of good sites that will start off with the basics?
    (\__/)
    (='.'=)
    (")_(")

  16. #16
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DVD to Div X software
    By Furton in forum Software
    Replies: 8
    Last Post: 03-01-2005, 04:20 PM
  2. CSS + Your Opinions
    By Jonny M in forum Software
    Replies: 6
    Last Post: 14-11-2003, 07:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •