Web Analytics Made Easy -
StatCounter html/css stupid problem for beginner - CodingForum

Announcement

Collapse
No announcement yet.

html/css stupid problem for beginner

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • html/css stupid problem for beginner

    hey ppl!
    i have this brain itching problem i can't seem to solve!
    i have to make a very simple disclaimer page for my site
    you know its one of those pages that hardly ever gets any views!! (that's why they made me do it!!)

    anyways this is the .css file

    Code:
    /* Reset Defaults */
    
    *
    
    {
    
       margin:0;
    
       padding:0;
    
    }
    
    body
    
    {
       text-align: center;
    
       font:normal; 
    
       margin: 0;
       padding: 0;
    }
    
    #contents
    {
    margin-top: 10px;
    margin-left: 15%;
    margin-right: 15%;
    padding: 10px;
    background-color: #FFF;
    color: #000;
    }
    and this is the .html file

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
         <title>Disclaimer</title>
    	 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    
    
         <link rel="stylesheet" type="text/css" href="disclaimer.css" media="screen"/> 
    </head>
    
    <body>
    		 <div id="contents">
    			<h1>Disclaimer</h1>
    
    				<p>ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</p>
    		</div>
    for some stupid reason the text "ddddddddddddddd..." wont show, only the h1 disclaimer text appears...

    what the hell is wrong?? i've tried everything...

    i bet its something really stupid but i'm a beginner and this is really making my brain itch!! lol!!
    HEELPP!!

  • #2
    The code you have pasted in works fine for me, although you forgot close your body and html tags.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
         <title>Disclaimer</title>
    	 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    
    
         <link rel="stylesheet" type="text/css" href="disclaimer.css" media="screen"/> 
    </head>
    
    <body>
    		 <div id="contents">
    			<h1>Disclaimer</h1>
    
    				<p>ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</p>
    		</div>
    
    [COLOR="Red"]</body>
    </html>[/COLOR]
    Is there any chance that you could upload your page as there may be conflicting css styles that are making your text white, for example.
    --> Check me out <--

    Comment


    • #3
      or a link to your page would be much better.
      Last edited by abduraooft; Apr 16, 2009, 07:15 AM.
      Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

      Comment


      • #4
        the site is not up yet so i can't post a link. i'm just using text editors for now...

        anyways NOW IT ALL MAKES SENSE!!
        i forgot to close the body tags... how stupid is that... i knew it was something dumb i was sure but i couldn't figure out what it was!!
        thank you ppl for giving me my mental sanity back!! i was going crazy over this one!!

        lol i feel so stupid now!!

        Comment


        • #5
          i forgot to close the body tags... how stupid is that... i knew it was something dumb i was sure but i couldn't figure out what it was!!
          Make use of markup validator, and save your development time.
          Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

          Comment

          Working...
          X