Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    My first CSS file

    I dont really need a big one, Im just trying it out for my fonts and color. And um its not working.. why would that be?

    Code:
    <style type="text/css">
    
    p {color: rgb (102,51,0)}
    p {font-family: Verdana; Tahoma; Arial;}
    p {font-style: oblique}
    </style>

  • #2
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    p{
         color:#663300;
         font-family: verdana, tahoma, arial, sans-serif;
    }

  • #3
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <link rel="stylesheet" type="text/css"
    href="http://www.ecntrcbeauty.org/eb.css"/>
    is that the correct code to link it? Im not sure but its not working, I replaced the code you gave me.. but now its still not working..

  • #4
    Regular Coder
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    528
    Thanks
    8
    Thanked 8 Times in 8 Posts
    How are you trying to use it.. eg. Are you putting this in your HTML:

    <p>CSS formatted text here</p>

    ???

  • #5
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ahhh I see, I knew I was forgetting something, my content is in tables because to seperate it and keep it in line I guess. I like doing that better.. How do I get it to work using tables?
    Last edited by ecntrc; 12-20-2005 at 02:46 AM.

  • #6
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for example, this is my code for my facts.html page www.ecntrcbeauty.org

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    		<meta name="generator" content="Adobe GoLive">
    		<title>FACTS</title>
    				<link rel="stylesheet" type="text/css"
    href="http://www.ecntrcbeauty.org/eb.css" />
    	<style type="text/css">
    <!--
    body {
    	background:#FFFFFF url(images/index_14.gif) fixed;
    }
    -->
    </style></head>
    
    	<body>
    		<table width="571" border="0">
              <tr>
                <td width="565"><img src="authorBUTTON.gif" width="96" height="20"></td>
              </tr>
              <tr>
                <td>Michelle - Owner and Creator</td>
              </tr>
              <tr>
                <td>I am 22 years young, a stay at home mom to one, webmaster to a few, a faithful friend, a quiet but loud creature. I have a very unique mind, I love to coding websites more than graphics. But getting used to doing both. I have a Associates Degree in Web Design/E-Commerce. After having my son I have become busy with teaching and helping my son learn the way the world works and what he needs to know but recently I have now started to explore more of what I can do with my life. <center><img src="border.gif" width="437" height="27"></center>
                  <center>
                </center></td>
              </tr>
              <tr>
                <td><img src="likesNdislikesBUTTON.gif" width="200" height="20"></td>
              </tr>
              <tr>
                <td>Loves First - I love the beach, I love the warm sun, I love spending time with my son, teaching him how to count, sing his ABC's, color within the lines, we also love painting, reading, puppet shows, jumping, laughing and much more. I also love helpful forums, cozy web communities, I love reading John Grisham books when I have the time, I love sleeping (dont we all), I love hot relaxing baths, I love a clean kitchen and a clean house after a tiered and busy day with my son. I am very much a computer person to be very honest, some people like it some people dont. I love friends that show they care about my family and I. I love being myself whether its liked or not. 
    </td>
              </tr>
              <tr>
                <td>Disloves Next - I dislove cruel and heartless people. I dislove those that take me and people in general for granted. I dislove two faced people, I dislove evil, hate and envy. I dislove people who dont take me as I am for I am me and you are you, if you dont take me as I am then please dont take me at all. I dislove wife abusers, inconsiderate people, backstabbers, gossipers, immature people. I dislove racism and hate towards a person for no reason. I dislove parents who neglect their child(ren) for stupidity when they know they need help. <center><img src="border.gif" width="437" height="27"></center></td>
              </tr>
              <tr>
                <td><img src="siteBUTTON.gif" width="105" height="20"></td>
              </tr>
              <tr>
                <td>Created with Photoshop CS, Dreamweaver, Adobe GoLive, and a few tutorials, credits are given on the links page. Has taken 2 weeks now, late night coffee sessions, day time designing, alot of thinking and help from people who are happy to help. Also alot of trial and error.<center><img src="border.gif" width="437" height="27"></center></td>
              </tr>
            </table>
    		<p></p>
    	</body>
    
    </html>
    how do I build a CSS in this case?

  • #7
    New Coder
    Join Date
    Dec 2005
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    td {
      blah
    }
    tr {
      blah
    }
    table {
      blah
    }
    However I'm not sure if this would validate with CSS? I'm still learning CSS too...

  • #8
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmm ill try it, and if not ill just use some other method.. id like to start using css..

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Yeah you'd want to apply it to the <td> tags like Jonathan pointed out. Basically using Ranger's code as example:

    Code:
    p{
         color:#663300;
         font-family: verdana, tahoma, arial, sans-serif;
    }
    The p before the curly brace is the element you wish to apply the styles to. So in your case you have to text inside td tags so you'd want to apply the style to the td tag.
    OracleGuy

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Selector magic

    You might want to read up on CSS selectors in the Selectutorial.

    And, on a different note: before you start to ask people money for helping them, you might want to learn how to help them first. That'll be $50, thank you.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #11
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ronaldb66
    You might want to read up on CSS selectors in the Selectutorial.

    And, on a different note: before you start to ask people money for helping them, you might want to learn how to help them first. That'll be $50, thank you.
    how could i help when shes never posted code.. but i dont know why your bringing that here.. if your concerned please PM me about it, also I wasnt the only one talking about money alright.. why does it even matter..

    ANyways, ill try the td.. does it have to be every cell or can it just be once?

  • #12
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <style type="text/css">
    td.p{
    color:#663300;
    font-family: verdana, tahoma, arial, sans-serif;
    }
    </style>
    Ive tried that td tag, that didnt work, I over looked that website and I could see the li and ul tags but nothing for td.. I looked through the whole site and didnt find anything I could use. I might have been looking in the wrong direction, I tried td.p { and so on but that didnt work either.. what else could I do or what am I doing wrong?

  • #13
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The point Ronald was trying to make is we volunteer our time not expecting anything in return. There is a forum for paid work offers and requests. Get rid of the .p and read the link Ronald gave you. Your words are in td tags not paragraph tags.

  • #14
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i got rid of the p and tried that and it didnt work and i did search through that site and i came up with nothing..

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text, styling

    The site you gave a link to doesn't contain any text, only pictures (very pretty, by the way ).

    You started off the thread with a question about text styling; could you place some actual text on that site and indicate how you want it to appear?
    If we can see the page as it should be and know what effect you desire we can give concrete suggestions for accomplishing that effect.

    By the way: during the development phase it's okay to leave the styles internal (in the <style>...</style> section), but once finished, or well on it's way, it's more practical to move the styles to an external style sheet.
    Leave it as it is for the moment: we'll cross that bridge when we get there.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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