Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
Hi I'm looking for a way to line up a column of three with links something like this
using css. Link Column1 Link Column2 Link Column3 Link Column1 Link Column2 Link Column3 Link Column1 Link Column2 Link Column3
__________________
Brandon Florida Real Estate Do Follow, Comment Luv Tampa Real Estate Blog and Top Commentator enabled Tampa MLS |
|
||||
|
Heres another one: http://glish.com/css/2.asp Cheers
|
|
||||
|
Sorry I think I may have not explained what I was looking for correctly. I am looking for more of a way to align text links similar to the way a table is lay out not the body columns.
A row of text links a left column,middle column, and right column.
__________________
Brandon Florida Real Estate Do Follow, Comment Luv Tampa Real Estate Blog and Top Commentator enabled Tampa MLS |
|
||||
|
You could put the links in an unordered list and display the list items inline.
|
|
|||
|
Like Mouse said, use a list (ul/li) and float:left to get them in a row. It's possible other ways (div) but ul/li is the best (won't dynamically resize)
__________________
Benjamin Kamp, CEO EB Web Services Inc. Offering Real Estate Services Through Sell My Beautiful House |
|
|||
|
try this code sample:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>example</title> <style type="text/css"> * { font: normal 1em Arial, Helvetica, sans-serif; color:#999; } .colun{ width:200px; float:left; border-top:#ccc 1px solid; /** delete this line for no border **/ } .colun p { border:#ccc 1px solid; /** delete this line for no border **/ border-top:none; /** delete this line for no border **/ margin: 0; padding: 0; } .colun a, .colun a:visited { color:#00c; text-decoration:none; padding: 0 0 0 6px; } </style> </head> <body> <div class="colun"> <p><a href="#">link1</a></p> <p><a href="#">link1</a></p> </div> <div class="colun"> <p><a href="#">link1</a></p> <p><a href="#">link1</a></p> </div> <div class="colun"> <p><a href="#">link1</a></p> <p><a href="#">link1</a></p> </div> </body> </html> Cheers!
__________________
MAC _________________________________________ Adobe Certified Professional, Macromedia Dreamweaver 8 Developer. |
|
||||
|
Thanks Mac, That code worked great Cheers
![]()
__________________
Brandon Florida Real Estate Do Follow, Comment Luv Tampa Real Estate Blog and Top Commentator enabled Tampa MLS |
![]() |
| Thread Tools | |
| Display Modes | |
|
|