Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: CSS Web Page

  1. #1
    Join Date
    Sep 2006
    Posts
    347

    Default 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.


  2. #2
    Join Date
    Sep 2006
    Posts
    347

    Default 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>



  3. #3
    Join Date
    Sep 2006
    Posts
    347

    Default 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.


  4. #4
    Join Date
    Sep 2006
    Posts
    347

    Default Re: CSS Web Page

    hey it wont let me post the whole thing..?


  5. #5
    Join Date
    May 2006
    Location
    Eta Carinae
    Posts
    19,658

    Default CSS Web Page

    uh..it should let u post the whole thing, what happens when u try to post?
    Do not PM me regarding your problems or suggestions for the board unless you are offering me money. I will Ignore your posts and if you bother me too much, you will be banned.

    ►Easy Programming | My Youtube
    ►Naztronomy :: Astrophotography | Custom Computers

  6. #6
    Join Date
    Sep 2006
    Posts
    347

    Default Re: CSS Web Page

    gives me a blank white page.. when i refresh gives me the posting box..


  7. #7
    Join Date
    May 2006
    Location
    Eta Carinae
    Posts
    19,658

    Default 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
    Do not PM me regarding your problems or suggestions for the board unless you are offering me money. I will Ignore your posts and if you bother me too much, you will be banned.

    ►Easy Programming | My Youtube
    ►Naztronomy :: Astrophotography | Custom Computers

  8. #8
    Join Date
    Sep 2006
    Posts
    347

    Default 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..


  9. #9
    Join Date
    May 2006
    Location
    Eta Carinae
    Posts
    19,658

    Default 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
    Do not PM me regarding your problems or suggestions for the board unless you are offering me money. I will Ignore your posts and if you bother me too much, you will be banned.

    ►Easy Programming | My Youtube
    ►Naztronomy :: Astrophotography | Custom Computers

  10. #10
    Join Date
    Sep 2006
    Posts
    347

    Default Re: CSS Web Page

    k..


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My myspace page =)
    By scorp in forum Post Anything
    Replies: 6
    Last Post: 05-12-2007, 09:38 AM
  2. MOVED: My myspace page =)
    By souljaa in forum Gamers Forum Talk
    Replies: 0
    Last Post: 05-10-2007, 03:04 PM
  3. Page Rank 3 for Gamers Forum
    By LiNuX in forum Gamers Forum Talk
    Replies: 6
    Last Post: 02-07-2007, 12:08 PM
  4. Ultimate Random Facts Page!!!
    By ShreadOfWheat in forum Post Anything
    Replies: 4
    Last Post: 12-19-2006, 05:11 AM

Posting Permissions

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

» Site Navigation

» Home
» FAQ

» Log in

User Name:

Password:

» Recent Threads

What to Do When Your...
03-21-2024 02:49 AM
Last Post By ElliottDooks
03-21-2024 02:49 AM
Im happy I finally...
03-09-2024 09:40 PM
Last Post By BillieRona
03-09-2024 09:40 PM
How to Enable the...
02-28-2024 02:25 PM
Last Post By ElliottDooks
02-28-2024 02:25 PM

» Sponsors