1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

about HTML code

Discussion in 'HTML & Website Design' started by rony27, Sep 20, 2012.

  1. #1
    What is the html code to make horizontal boxes i need to make some boxes go from left to right but all i can find is on top of each other, you can see example here <a href="http://www.carinsurancequotesinformation.com&quot;>car insurance quotes</a> where the boxes are next to each other, and will this affect the page width on my site.
    Someone told me use DIV tags but how do i put this in HTML code?.
     
    rony27, Sep 20, 2012 IP
  2. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #2
    I strongly urge you to stop now and learn CSS.

    Using HTML tables is no longer a good way to code websites. Your friend was correct in suggesting you use DIVs, this will come hand-in-hand with CSS and honestly, taking the time to learn it will benefit you hugely in the future.

    <div id="boxes">
    <div class="box">Content</box><div class="box">Content2</div><div class="box">Content 3</div><div class="box">Content 4</div>
    </div>
    HTML:
    Is a lot easier, quicker, neater, easier to index in the search engines than:

    <table align=center width="750" cellpadding=7 bgcolor="#ffffff" style="border:3px solid #aaaaaa;">
    			<tr>
    			<td align=center>
                
    			 <!-- header starts -->
    
    
    			<table cellpadding=0 cellspacing=0 align=center width=750 style="border:0px solid #ddd;">
                <tr><td><a href="index.html"><img src="images/logo2.jpg" border=0></a></td>
    
                <td align=right><span style="font-size:9pt;"><a href="index.html">www.carinsurancequotesinformation.com</a></span></td>
                </tr>
                </table>
                <!-- header ends -->
    
    <a href="http://lwken.com/click/?s=244058&c=659180"><img src="http://lwken.com/images/13053-659180-728x90.jpg?s=244058" style="width: 728px; height: 90px; border: 0px;"/></a>
    <a href="http://www.jdoqocy.com/fc81wktqks7E9BBE9E798GGBCB9" target="_blank" onmouseover="window.status='http://www.yahoo.com';return true;" onmouseout="window.status=' ';return true;">
    <img src="http://www.lduhtrp.net/bj108vvzntrCJEGGJEJCEDLLGHGE" alt="Yahoo! Flickr - 468x60" border="0"/></a>
    <table cellpadding=0 cellspacing=0 width=750 align=center>
    
    
    			</table>
    			<br>
    			
    			<table cellpadding=0 cellspacing=0 width=750 align=center>
    			<tr><td><img src="images/findproviders.jpg"></td></tr>
    			</table>
    			
    			<br>
    			
    		
    			
    			<table cellpadding="3" cellspacing="0" height="187" align="center" width="750">
    				<tr>
    					<td background="images/auto_bg1.jpg" align="center" 
    						width="171" valign=top style="border:1px solid #ccc;">
    						<br><br>
    						<form action="autoresults.html" method="get" style="padding: 0 0 0 0; margin: 0 0 0 0;">
    						<p style="padding-left: 7;padding-top:17px; margin: 0 0 0 0;">
    				<input value='ENTER ZIP CODE' type="text" onFocus="this.value=''" onBlur="if(this.value=='')this.value='ENTER ZIP CODE'" name="zipcode"  style="width:110px;font-size:10pt;color:#0063C6;font-family:Arial;font-weight:bold;"><br><br>
    														<input type="submit" name="search" value="Get Started" style="width:110px;background:#DD6F00;color:#ffffff;font-style:bold;font-family:arial;font-size:12pt;font-weight:bold">
    						</p>
    						</form>
    					</td>
    					<td width="7">&nbsp;<br>
    					</td>
    					<td background="images/home_bg.jpg" align="center"
    						width="171" valign=top style="border:1px solid #ccc;">
    						<br><br>
    						<form action="homeresults.html" method="get" style="padding: 0 0 0 0; margin: 0 0 0 0;">
    						<p style="padding-left: 7;padding-top:17px; margin: 0 0 0 0;">
    						<input value='ENTER ZIP CODE' type="text" onFocus="this.value=''" onBlur="if(this.value=='')this.value='ENTER ZIP CODE'" name="zipcode"  style="width:110px;font-size:10pt;color:#0063C6;font-family:Arial;font-weight:bold;"><br><br>
    							<input type="submit" name="search" value="Get Started" style="width:110px;background:#DD6F00;color:#ffffff;font-style:bold;font-family:arial;font-size:12pt;font-weight:bold">
    						</p>
    						</form>
    					</td>
    					<td width="7">&nbsp;<br>
    					</td>
    					<td background="images/life_bg.jpg" align="center"
    						width="171" valign=top style="border:1px solid #ccc;" >
    						<br><br>
    						<form action="liferesults.html" method="get" style="padding: 0 0 0 0; margin: 0 0 0 0;">
    						<p style="padding-left: 7;padding-top:17px; margin: 0 0 0 0;">
    							<input value='ENTER ZIP CODE' type="text" onFocus="this.value=''" onBlur="if(this.value=='')this.value='ENTER ZIP CODE'" name="zipcode"  style="width:110px;font-size:10pt;color:#0063C6;font-family:Arial;font-weight:bold;"><br><br>
    							<input type="submit" name="search" value="Get Started" style="width:110px;background:#DD6F00;color:#ffffff;font-style:bold;font-family:arial;font-size:12pt;font-weight:bold">
    						</p>
    						</form>
    					</td>
    					<td width="7">&nbsp;<br>
    					</td>
    					<td background="images/motocycle_bg.jpg" align="center"
    						width="171" valign=top style="border:1px solid #ccc;">
    						<br><br>
    						<form action="motorresults.html" method="get" style="padding: 0 0 0 0; margin: 0 0 0 0;">
    						<p style="padding-left: 7;padding-top:17px; margin: 0 0 0 0;">
    							<input value='ENTER ZIP CODE' type="text" onFocus="this.value=''" onBlur="if(this.value=='')this.value='ENTER ZIP CODE'" name="zipcode"  style="width:110px;font-size:10pt;color:#0063C6;font-family:Arial;font-weight:bold;"><br><br>
    							<input type="submit" name="search" value="Get Started" style="width:110px;background:#DD6F00;color:#ffffff;font-style:bold;font-family:arial;font-size:12pt;font-weight:bold">
    						</p>
    						</form>
    					</td>
    				</tr>
    			</table>
    HTML:
     
    scottlpool2003, Sep 20, 2012 IP
  3. matthewpomar

    matthewpomar Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did that solve your problem?
     
    matthewpomar, Sep 20, 2012 IP
  4. brain01ford

    brain01ford Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi All,
    HTML Code is used for the designing the page and websites.in html code use the Tag<>,font,background color etc.hml code is easy to design the page.HTML elements form the building blocks of all websites.It can embed script in languages such as Java Script which affect the behavior of HTML.
     
    brain01ford, Sep 24, 2012 IP
  5. HBz

    HBz Peon

    Messages:
    51
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ^ is that a spam bot? I mean really...

    It can be a struggle to get sensible CSS columns...I think I do it a slightly different way every time I go about implementing it. It usually isn't much trouble but I've had to look up this article recently and it seems pretty robust:

    http://www.alistapart.com/articles/holygrail

    The example there is for 3 columns but it can't be too hard to generalize it to X.
     
    HBz, Sep 24, 2012 IP