Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
Share
LinkBack Thread Tools
Old 09-11-2012, 11:59 PM   #1
Banned
 
Join Date: Jul 2010
Location: Philly Baby!
Posts: 233
Thanks: 123
Thanked 31 Times in 21 Posts
Default How can a make a HTML text box like this?

This website has a 3 column text box as well one large text box. Does anyone know how to make the boxes?


No, this is not my website, I just like the boxes. :0)
Johnny Danes is offline   Reply With Quote
Old 09-12-2012, 01:33 AM   #2
run
Advanced Warrior
 
run's Avatar
 
Join Date: Jul 2012
Location: Kawasaki
Posts: 528
Thanks: 50
Thanked 64 Times in 62 Posts
Default Re: How can a make a HTML text box like this?

That's just normal HTML table tag. Something like this:
3 columns text box:
<table border="1">
<tr>
<td>First Column</td>
<td>Second Column</td>
<td>Third Column</td>
</tr>
</table>


The same goes to 1 column that:
<table border="1">
<tr>
<td>One Column</td>
</tr>
</table>
run is online now   Reply With Quote
Old 09-12-2012, 02:53 AM   #3
Teacher
 
Join Date: Jul 2011
Posts: 85
Thanks: 0
Thanked 11 Times in 10 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Re: How can a make a HTML text box like this?

the website used a table to create the 3 column content while the one big content they used a paragraph tag..

here is the exact html code of the 3 column table in the content of the website stated..
HTML Code:
<table width="490" height="166" border="1" align="center" cellpadding="10" cellspacing="" bordercolor="#CCCCCC" bgcolor="FFFFCE">
	<tr>
		<td width="145" height="144" valign="top">
			<p><font color="#996600"><b>How to make a great cup of coffee</b></font></p>
			<a href="http://www.coffeedetective.com/how-to-make-coffee.html">How to make coffee</a><br>
			<br>
			<a href="http://www.coffeedetective.com/iced-coffee-drinks-at-home.html">Iced coffee drinks</a><br><br>
			<a href="http://www.coffeedetective.com/coffee-benefits.html"><b>The health benefits of coffee</b></a> <p></p>    
		</td>
		<td width="145" height="144" valign="top">
			<p><font color="#996600"><b>Choosing the best coffee maker</b></font></p>
			<p><span class="style7">
			<a href="http://www.coffeedetective.com/single-cup-coffee-brewers.html"><b>The best single cup coffee makers</b></a></span></p>
			<a href="http://www.coffeedetective.com/best-coffee-makers.html">Which are the best coffee makers?</a> <br><br>
			<a href="http://www.coffeedetective.com/best-coffee-makers-under-hundred-dollars.html">Best coffee makers under $100</a><br> <br>
		</td>
		<td width="145" height="144" valign="top">
			<p><font color="#996600"><b>Reviews, Videos &amp; Questions</b></font></p>      
			<p>
				<a href="http://www.coffeedetective.com/coffee-reviews.html"><b>Coffee reviews</b></a><br>
				<br><a href="http://www.coffeedetective.com/coffee-videos.html">Videos on making coffee</a>
			</p>
			<p><a href="http://www.coffeedetective.com/questions-about-coffee.html">Ask your questions about coffee</a> <br></p>
			<p> </p>
		</td>
	</tr> 
</table>
JohnnyS is offline   Reply With Quote
Old 09-12-2012, 03:47 AM   #4
Warrior Member
 
Join Date: Jun 2012
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: How can a make a HTML text box like this?

Its very simple, can do with the help of table.

alfiecharleng is offline   Reply With Quote
Old 09-12-2012, 11:21 AM   #5
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 2,413
Thanks: 157
Thanked 1,030 Times in 462 Posts
Default Re: How can a make a HTML text box like this?

You shouldn't use tables for layout purposes. You should use CSS for that instead. Simply create a div for each box, and use CSS to set it's location, size, border style, colors, etc.

Here's a simple explanation of how it works...

CSS Box Model

Brandon Tanner is online now   Reply With Quote
Old 09-12-2012, 11:57 AM   #6
Web Designer/Developer
 
cssbros's Avatar
 
Join Date: Jun 2012
Location: Manila Philippines
Posts: 147
Thanks: 9
Thanked 14 Times in 14 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to cssbros
Default Re: How can a make a HTML text box like this?

A simple div's and borders would definitely do.

cssbros is offline   Reply With Quote
Old 09-12-2012, 01:25 PM   #7
Active Warrior
 
Join Date: Jul 2009
Posts: 68
Thanks: 10
Thanked 11 Times in 11 Posts
Default Re: How can a make a HTML text box like this?

Hi, thought you might be interested in my version of this. Could be coded a little lighter but this example gives you fluid equal length columns.
Code:
<html>
<head>
<style type="text/css">
.holder{width:100%;text-align:center;overflow:auto;}
.hold{width:489px;margin:auto;overflow:auto;color:#996600;background:#CCCCCC;}
.hm{width:100%;overflow:hidden;margin-bottom:1px;}
.rh{float:right;width:326px;overflow:hidden;}
.ctr{float:left;width:161px;margin:1px;background:#FFFFCE;padding-bottom:10em;margin-bottom:-10em;}
.rgt{float:right;width:161px;margin:1px;background:#FFFFCE;padding-bottom:10em;margin-bottom:-10em;}
.lft{float:left;width:161px;margin:1px;background:#FFFFCE;padding-bottom:10em;margin-bottom:-10em;}
.hold p{text-align:left;margin:10px;}
</style>
</head>
<body>
<div class="holder">
  <div class="hold">
    <div class="hm">
      <div class="rh">
        <div class="ctr">
          <p><b>Choosing the best coffee maker</b></p>
          <p><a href="http://www.coffeedetective.com/singl...wers.html">The best single cup coffee makers</a></p>
          <p><a href="http://www.coffeedetective.com/best-...rs.html">Which are the best coffee makers?</a></p>
          <p><a href="http://www.coffeedetective.com/best-...ars.html">Best coffee makers under $100</a></p>
        </div>
        <div class="rgt">
          <p><b>Reviews, Videos &amp; Questions</b></p>
          <p><a href="http://www.coffeedetective.com/coffe...s.html">Coffee reviews</a></p>
          <p><a href="http://www.coffeedetective.com/coffe...s.html">Videos on making coffee</a></p>
          <p><a href="http://www.coffeedetective.com/quest...ffee.html">Ask your questions about coffee</a></p>
        </div>
      </div>
      <div class="lft">
        <p><b>How to make a great cup of coffee</b></p>
        <p><a href="http://www.coffeedetective.com/how-t...ffee.html">How to make coffee</a></p>
        <p><a href="http://www.coffeedetective.com/iced-...ome.html">Iced coffee drinks</a></p>
        <p><a href="http://www.coffeedetective.com/coffe...fits.html">The health benefits of coffee</a></p>
      </div>
    </div>
  </div>
</div>
</body>
</html>
Have fun with it. Jim
jamaks is offline   Reply With Quote
Old 09-12-2012, 02:15 PM   #8
HyperActive Warrior
 
Join Date: Aug 2012
Location: WF
Posts: 195
Thanks: 15
Thanked 15 Times in 15 Posts
Default Re: How can a make a HTML text box like this?

Quote:
Originally Posted by Johnny Danes View Post
This website has a 3 column text box as well one large text box. Does anyone know how to make the boxes?
No, this is not my website, I just like the boxes. :0)
There are almost no acceptable uses of tables in modern web design anymore.

Here is a very short and to the point example of how to achieve this:
<html>
<head>
<title></title>
<style type="text/css">
.boxholder {float:left;padding:1px; border:1px solid #CCC;}
.box {float:left; width:158px;border:1px solid #CCC; padding:1px;margin:1px;}
.clear {float:none;width:100%;}
</style>
</head>
<body>
<div class="boxholder">
<div class="box1 box">Box1 Content</div>
<div class="box2 box">Box2 Content</div>
<div class="box3 box">Box3 Content</div>
</div>
<div class="clear"></div>
</body>
</html>
ArcherWylde is offline   Reply With Quote
Old 09-13-2012, 07:18 AM   #9
Advanced Warrior
War Room Member
 
ronc0011's Avatar
 
Join Date: Nov 2010
Posts: 795
Thanks: 14
Thanked 61 Times in 56 Posts
Default Re: How can a make a HTML text box like this?

Looks to me like it's likely just divs with a border and no margins. probably something like...

Code:
 
<div style="float:left;width:120px;height:250px; margin:0px 0px 0px 0px;border;1px solid #000;"></div>
 

ronc0011 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Bookmarks

Tags
box, html, make, text

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 10:08 PM.