CSS Web Page

Printable View

  • 09-23-2006, 08:58 PM
    Haloer2006
    CSS Web Page
    AN INTRODUCTION TO CASCADING STYLE SHEETS

    CSS is the acronym for: ?Cascading Style Sheets?. CSS is an extension to basic HTML that allows you to style your web pages.

    An example of a style change would be to make words bold. In standard HTML you would use the <b> tag like so:

    <b>make me bold</b>

    This works fine, and there is nothing wrong with it per se, except that now if you wanted to say change all your text that you initially made bold to underlined, you would have to go to every spot in the page and change the tag.
  • 09-23-2006, 08:59 PM
    Haloer2006
    Re: CSS Web Page
    Another disadvantage can be found in this example: say you wanted to make the above text bold, make the font style Verdanna and change its color to red, you would need a lot of code wrapped around the text:

    <font color="#FF0000" face="Verdana, Arial, Helvetica, sans-serif"><strong>This is text</strong></font>

    This is verbose and contributes to making you HTML messy. With CSS, you can create a custom style elsewhere and set all its properties, give it a unique name and then ?tag? your HTML to apply these stylistic properties:

    <p class="myNewStyle">My CSS styled text</p>

  • 09-23-2006, 08:59 PM
    Haloer2006
    Re: CSS Web Page
    Besides the fact that you will be cluttering up your pages with the same CSS code, you also find yourself having to edit each of these pages if you want to make a style change. Like with JavaScript, you can define/create your CSS styles in a separate file and then link it to the page you want to apply the code to:

    <link href="myFirstStyleSheet.css" rel="stylesheet" type="text/css">

    The above line of code links your external style sheet called ?myFirstStyleSheet.css? to the HTML document. You place this code in between the <head> </head> tags in your web page.
  • 09-23-2006, 09:01 PM
    Haloer2006
    Re: CSS Web Page
    hey it wont let me post the whole thing..?
  • 09-23-2006, 09:12 PM
    LiNuX
    CSS Web Page
    uh..it should let u post the whole thing, what happens when u try to post?
  • 09-23-2006, 09:29 PM
    Haloer2006
    Re: CSS Web Page
    gives me a blank white page.. when i refresh gives me the posting box..
  • 09-23-2006, 09:43 PM
    LiNuX
    Re: CSS Web Page
    uh..delete ur cookies, it could be the problem, tools --> internet options --> delete cookies
    others and i have posted longer posts
  • 09-23-2006, 09:53 PM
    Haloer2006
    Re: CSS Web Page
    http://gamers-forum.com/YaBB.pl?num=...5;action=post2
    Thats what i get.. and yeah i cleared all the cache and cookies..
  • 09-23-2006, 09:56 PM
    LiNuX
    CSS Web Page
    hm..i dont know, it never really happened to me or anybody else as i recall, im trying to convert this forum to a phpbb or a metabb, i gotta test a lotta stuff lol, hopefully it'll be soon and u wont have that problem ever again :D
  • 09-23-2006, 10:06 PM
    Haloer2006
    Re: CSS Web Page
    k..
  • 09-24-2006, 03:18 AM
    sign89
    Re: CSS Web Page
    Great Information man. Helps.
  • 09-24-2006, 06:41 AM
    Haloer2006
    Re: CSS Web Page
    maybe try getting VBullitin? Or is that wishful thinking?
  • 09-24-2006, 10:01 AM
    LiNuX
    CSS Web Page
    vbulletin i want to get but i dont have money to waste on that lol, all i can work on now are free forum softwares, cant even get ipb :'(
  • 09-24-2006, 10:40 AM
    Haloer2006
    Re: CSS Web Page
    Well if you and me work a partnership we might be able to get the money for an IPB?
    My Forum will be the Game Side Like MMO's yours will be the General Gamer?
    And Yours Will also be FPS? Like CS:S?
  • 09-24-2006, 10:50 AM
    LiNuX
    CSS Web Page
    that doesnt sound like a bad idea but school just started for me 3 weeks ago and the boringness is getting started, how about next year? when i go to college, i should have more time and money then lol but it wasnt a bad idea :D
  • 09-24-2006, 12:15 PM
    Haloer2006
    Re: CSS Web Page
    Well if i can get IPB or VB ill make sure to give it to you..
  • 09-24-2006, 12:27 PM
    LiNuX
    Re: CSS Web Page
    8-) cool thanks, then i would just have to convert it lol, im having trouble converting it to phpbb now, i'll make a topic in the computer help section asking for it, i forgot whats troubling me agian lol, gonna try it again and see where i keep getting stuck, last time i tried it was like 2 weeks ago, if i convert it successfully, i'll make u a mod here ;D
  • 09-24-2006, 12:32 PM
    Haloer2006
    Re: CSS Web Page
    ^_^ cool...
  • 09-24-2006, 12:37 PM
    Thor Erik
    Re: CSS Web Page
    i got vB 3.0.7 + Impex =D
  • 09-24-2006, 12:39 PM
    Haloer2006
    Re: CSS Web Page
    i hate you..
    how much for it?
  • 09-24-2006, 12:41 PM
    Thor Erik
    Re: CSS Web Page
    Quote:

    i hate you..
    how much for it?
    gehe it's mine!
    "my precius!"
    "Mine ALL mine ^^"
  • 09-24-2006, 12:43 PM
    Haloer2006
    Re: CSS Web Page
    Smergal gets head smitted off...

    i really hate you..
  • 09-24-2006, 12:45 PM
    Thor Erik
    Re: CSS Web Page
    Quote:

    Smergal gets head smitted off...

    i really hate you..
    lol
    youre evil :(
    well you can just get a nulled on :P lol not that i say you should though xD
  • 09-24-2006, 12:46 PM
    Haloer2006
    Re: CSS Web Page
    i wont im not that evil...

    though i wish i could buy 1..

    maybe when i get 400$$
  • 09-24-2006, 12:49 PM
    Thor Erik
    Re: CSS Web Page
    well if ppl are intested i can post a tutor on how to make a FULL webpage with ease =) (using php ofcorse :P)
  • 09-24-2006, 12:50 PM
    LiNuX
    Re: CSS Web Page
    Quote:

    well if ppl are intested i can post a tutor on how to make a FULL webpage with ease =) (using php ofcorse :P)
    with php, that would be cool, im trying to learn php a little now lol, kinda like C++ codes but different by a lot, some codes remind me of C++
  • 09-24-2006, 12:51 PM
    Haloer2006
    Re: CSS Web Page
    thor im beating you!

    Also i dare you to make it..
    JK but it would be cool!
    We could work together??
    You help me with it?
  • 09-24-2006, 12:52 PM
    Thor Erik
    Re: CSS Web Page
    Quote:

    Quote:

    well if ppl are intested i can post a tutor on how to make a FULL webpage with ease =) (using php ofcorse :P)
    with php, that would be cool, im trying to learn php a little now lol, kinda like C++ codes but different by a lot, some codes remind me of C++
    this one uses the most basic php functions (sutch as if/else, function xxx(), include etc.)
  • 09-24-2006, 12:55 PM
    Haloer2006
    Re: CSS Web Page
    thats pertty cool! Wish i new php really well i need a good login system..
  • 09-24-2006, 12:56 PM
    Thor Erik
    Re: CSS Web Page
    i can try to make one for ya. just gimme some time :P
  • 09-24-2006, 12:57 PM
    Haloer2006
    Re: CSS Web Page
    sweet.. could u install it??
    With the mySQL thing it gets trickey..
  • 09-24-2006, 01:03 PM
    Thor Erik
    Re: CSS Web Page
    man i haven't made it yet. besides i hate mySQL so it will be sql less ;)(still safe though :P)
  • 09-24-2006, 01:04 PM
    Haloer2006
    Re: CSS Web Page
    darn i will need one that can hold alot of users.. why do u hate Sql?
  • 09-24-2006, 01:05 PM
    Thor Erik
    Re: CSS Web Page
    Quote:

    darn i will need one that can hold alot of users.. why do u hate Sql?
    it's pain to learn :P and pain to do right :(
    but i can make a reg system too :)
  • 09-24-2006, 01:06 PM
    Haloer2006
    Re: CSS Web Page
    sweet.. though i really need to work on making my site.. So that it looks good!
  • 09-25-2006, 10:24 PM
    sign89
    Re: CSS Web Page
    good post.
  • 09-26-2006, 03:11 PM
    Haloer2006
    Re: CSS Web Page
    i like yours..

    Quote:

    Good post
  • 09-26-2006, 06:12 PM
    sign89
    Re: CSS Web Page
    i like all of yours
  • 09-26-2006, 09:18 PM
    Haloer2006
    Re: CSS Web Page
    id think you would hate me.. i just sniped u gies out of first..

» Site Navigation

» Home
» FAQ

» Log in

User Name:

Password:

» Sponsors