www.webdeveloper.com
Results 1 to 15 of 15

Thread: New guy

  1. #1
    Join Date
    Apr 2005
    Posts
    3

    Thumbs up New guy

    hey what's goin' on guys


    i'm new here, i'm tryin' to make my website look cool on this site. Now it says it uses HTML, DHTML and CSS.

    I'ma newbie....how can i change the background color and font color? =/


    thanx

  2. #2
    Join Date
    Dec 2003
    Location
    A series of tubes known as the "internets"
    Posts
    2,166
    use css:

    background-color:#f5f5f5;
    color: #afeeee

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    1) Put the following at the start of your page:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">


    2) Get the page to pass The Validator.

    3) See http://www.w3.org/TR/REC-CSS2/colors.html .
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    Quote Originally Posted by rhsunderground
    use css:

    background-color:#f5f5f5;
    color: #afeeee
    A more interesting example might be:
    Code:
    <style type="text/css">
    body {
    	background-color:Menu;
    	color:MenuText;
    }
    </style>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Dec 2003
    Location
    A series of tubes known as the "internets"
    Posts
    2,166
    Quote Originally Posted by Charles
    A more interesting example might be:
    Code:
    <style type="text/css">
    body {
    	background-color:Menu;
    	color:MenuText;
    }
    </style>
    oh, sure, put what the real answer is

    i kinda assumed that since his site already has css he'd know what to do with it.

  6. #6
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    I was just trying to demonstrate that CSS doesn't force you to play the control freak. You can use the various system colors so that the page will suit the tastes and needs of each user.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  7. #7
    Join Date
    Dec 2003
    Location
    A series of tubes known as the "internets"
    Posts
    2,166
    Quote Originally Posted by Charles
    I was just trying to demonstrate that CSS doesn't force you to play the control freak. You can use the various system colors so that the page will suit the tastes and needs of each user.
    ?????

    what exactly does that Menu/Menutext set the color to?

  8. #8
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    Quote Originally Posted by rhsunderground
    ?????

    what exactly does that Menu/Menutext set the color to?
    To the colors that the user's system uses for a menu and its text. Am I the only one here who keeps a copy of the CSS2 specification by the side of the commode?

    Do see http://www.w3.org/TR/REC-CSS2/ui.html#system-colors .
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  9. #9
    Join Date
    Dec 2003
    Location
    A series of tubes known as the "internets"
    Posts
    2,166
    coolness. thanks charles!


    btw - bookmarked

  10. #10
    Join Date
    Apr 2005
    Posts
    3
    wow u guys really respond fast, that's cool!! =)


    now with me we gotta do it 1 thing at a time, sorry guys.........

    background-color:#f5f5f5;
    color: #afeeee

    now if i wanna put red for font and block for blackground?

    i put "background-color:#f5f5f5;"?? how do i know which number is for example for red?

    sorry i'm not good with this guys

  11. #11
    Join Date
    Dec 2003
    Location
    A series of tubes known as the "internets"
    Posts
    2,166
    check out http://www.w3schools.com/html/ref_co...asp?hex=F5F5F5 and find the colors you like and replace #f5f5f4 with the one that you want.

  12. #12
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Hex colours work like so #RRGGBB, so #ff0000 would be all red with no blue or green. (one uses 0-f instead of 0-9 to save space, so ff is 256.)

  13. #13
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    Or, for "web safe" colors use #rgb - where "#f00" is the same as "#ff0000".
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  14. #14
    Join Date
    Apr 2005
    Posts
    3
    (ugh) dude anybody heard of www.myspace.com??

    I'm tryin' to add colors, etc. on my site and u have to go to "edit profile" which i did, dude i type in color:#FF0000 and then nothin' happens? =/

    i dunno what i'm doin' wrong dude

  15. #15
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Nope. There's probably a space where it asks for your background colour (where you'd put #f00 or just f00) or where you can go strait in and edit your HTML, in which case find the style element and squeese in the code we gave you firt time around.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles