www.webdeveloper.com
Results 1 to 4 of 4

Thread: Help With Div Styleing!

  1. #1
    Join Date
    Mar 2011
    Posts
    1

    Unhappy Help With Div Styleing!

    Hey guys, i'm nikku, i have an error or bug? with my div style html script
    heres a pic:
    http://awesomescreenshot.com/0739mf8a8
    i typed in(in notepad++):
    <html>
    <title>T.V Taxing Scam</title>
    <div style="width:400px;margin:10px;">
    <h1>Zinga<strong>PRO</strong>ductions
    <br />Present...
    </h1>

    <h2>The T.V.T.N scam (<strong>T</strong>ele<strong>V</strong>ision <strong>T</strong>axing <strong>S</strong>cam)</h2>
    </div>
    </html>

    and for some reason, it doesnt use the width:400px and margin:10px in the style... PLEASE HELP!

  2. #2
    Join Date
    Feb 2011
    Location
    israel
    Posts
    157
    it should work, what exactly is not right?
    my blog.

  3. #3
    Join Date
    Sep 2008
    Location
    Dallas
    Posts
    154
    Just at a glance, you're missing a <head> section, you're missing the <body>, and you don't have a DOCTYPE. However, you just have a white div on a white body, so I'm not sure what you're expecting to see, but you won't "see" anything different here. Add a border around it, and you will see it is sized to 400px.

  4. #4
    Join Date
    Feb 2011
    Location
    israel
    Posts
    157
    and hat will explain why it worked for me, since i just copied the div and pasted it into a regular document -_-
    my blog.

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