www.webdeveloper.com
Results 1 to 4 of 4

Thread: Div not showing

  1. #1
    Join Date
    Dec 2012
    Location
    UK
    Posts
    3

    Thumbs down Div not showing

    Transitioning from flash web design to html/css so go easy on me its probably something stupid.
    Can't find an answer on w3schools or google so i come here for your words of wisdom.

    html
    HTML Code:
    <div class="stretch"> </div>
    css
    HTML Code:
    .stretch
    {
    	top:0px;
    	left:0px;
    	background-color:#123456;
    	
    	width:100%;
    }
    The div only shows when there is text in it, is there a way to just have a coloured box ?

  2. #2
    Join Date
    Dec 2012
    Posts
    101
    Give it a height value

  3. #3
    Join Date
    Dec 2012
    Location
    UK
    Posts
    3
    Worked it out haha, feel like such an idiot, thank you for the response though!

  4. #4
    Join Date
    Jan 2013
    Posts
    4
    you should give height value and it will solve your problem..

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