SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding content to these boxes?

    I was provided this code (and some css) to create three boxes on my web site. It was successful. Now what code do I need to add content to these boxes? Thanks.

    Code:
    		<div class="container1">
    
    		</div>
    
    		<div class="container1">
    
    		</div>
    
    		<div class="container1">
    
    		</div>

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Put your content between the tags:

    HTML Code:
    <div class="container1">
      Your Content Goes Here
    </div>

  3. #3
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should embed appropriate elements in each division. Divisions should be looked at as adding 'additional semantics'. The big misconception is abusing div's as css styling hooks. If the content-out approach was taken into consideration then presentational div's would be kept minimal.

    Code HTML4Strict:
    <div id="navigation">
    	<ul id="main-navigation">
    		<li><a href="#">...</a></li>
    		<li><a href="#">...</a></li>
    		<li><a href="#">...</a></li>
    	</ul>
     
    	<ul id="secondary-navigation">
    		<li><a href="#">...</a></li>
    		<li><a href="#">...</a></li>
    		<li><a href="#">...</a></li>
    	</ul>
     
    	<ul id="tertiary-navigation">
    		<li><a href="#">...</a></li>
    		<li><a href="#">...</a></li>
    		<li><a href="#">...</a></li>
    	</ul>
    </div>


Bookmarks

Posting Permissions

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