| Web Design Lobby Forum for general web design issues not specific to scripting or graphics. |
08-14-2006, 08:19 PM
|
#1 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
Center Table/Text in 2 Columns
I am having trouble centering a table w/ text in 2 columns
table is centered, but i want them both left aligned and it causes it to look ugly
any ideas?
Code:
http://kylevarg a.com/sigep/housing-offcampus.php
(dont want it indexed)
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
08-14-2006, 08:24 PM
|
#2 (permalink)
|
|
Empress™
Join Date: 08-19-04
Location: York, UK
Posts: 17,965
|
Okay, first off, you have GOT to get rid of the music. Ugh.
I see the text as left-aligned within the cell. What are you asking...?
|
|
|
08-14-2006, 08:58 PM
|
#3 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
its not overall centered
i want like
--|--
-|-|-
where the | is the text left aligned
right now its like
----|----
-|---|---
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
08-14-2006, 08:58 PM
|
#4 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
my dad wants the music btw, yeah, i told him its annoying but he says since ppl wont go to site much or something, i`m thinking he will tell me to turn the autostart off in like a week or too. i agree w/ you on it being annoying
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
08-16-2006, 09:13 AM
|
#5 (permalink)
|
|
Contributing Member
Join Date: 03-06-04
Location: NY, CT, CA, AZ
Posts: 555
Latest Blog: None
|
You should probably run your code through an HTML validator.
I don't think you're supposed to assign the same id to multiple elements within the same page.
Code:
<center>
<table id="hotels" width="80%">
<tr>
<td align="left" valign="top">
<ol>
<li>Historic Hotel Bethlehem<br>
437 Main St.<br>
Bethlehem, PA 18018<br>
610 625-5000<br>
<a href="http://www.hotelbethlehem.com/">http://www.hotelbethlehem.com</a></li>
<li>Best Western Lehigh Valley (Rt 22)<br>
300 Gateway Dr.<br>
Bethlehem, PA 18017<br>
610 866-5800<br>
<a href="http://www.bestwestern.com">http://www.bestwestern.com</a></li>
<li>Comfort Inn (Rt 22 & Rt 191)<br>
3191 Highfield Dr.<br>
Bethlehem, PA 18020<br>
610 865-6300<br>
<a href="http://www.choicehotels.com">http://www.choicehotels.com</a></li>
<li>Comfort Suites (Just off campus)<br>
120 W 3rd St.<br>
Bethlehem, PA 18015<br>
610 882-9700<br>
<a href="http://www.choicehotels.com">http://www.choicehotels.com</a></li>
<li>Courtyard By Marriott (By Airport)<br>
2160 Motel Dr.<br>
Bethlehem, PA 18018<br>
610 317-6200<br>
<a href="http://marriott.com">http://marriott.com</a></li>
</ol>
</td>
<td align="left" valign="top">
<ol>
<li value="6">Fairfield Inn & Suites (By Airport)<br>
2140 Motel Dr.<br>
Bethlehem, PA 18018<br>
610 867-8681<br>
<a href="http://marriott.com/fairfieldinn/default.mi">http://marriott.com/fairfieldinn/default.mi</a></li>
<li>Hampton Inn & Suites (Rt 22 & Center St)<br>
200 Gateway Dr.
<br>Bethlehem, PA 18017<br>
610 868-2442<br>
<a href="http://hamptoninn.hilton.com">http://hamptoninn.hilton.com</a></li>
<li>Park Manor Motel (Rt 22 & Seedy)<br>
69 N. Locke Dr.<br>
Pollock, PA 18052<br>
610 236-8444<br>
<a href="http://www.heidislingerie.com">http://www.heidislingerie.com</a></li>
<li>Residence Inn by Marriott (By Airport)<br>
2180 Motel Dr.<br>
Bethlehem, PA 18018<br>
610 317-2662<br>
<a href="http://marriott.com">http://marriott.com</a></li>
<li>Wydnor Hall Inn (B&B / Saucon Valley)<br>
3612 Old Philadelphia Pike<br>
Bethlehem, PA 18015<br>
610 867-6851</li>
</ol>
</td>
</table>
</center>
__________________
"90% of the game is half mental."
--Yogi Berra
Elizabeth Arden
Last edited by FGTH : 08-16-2006 at 09:19 AM.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:44 AM.
© Copyright 2008 V7 Inc
|