Computing.Net > Forums > Web Development > simple html question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

simple html question

Reply to Message Icon

Name: nunyabiznaz
Date: November 30, 2006 at 17:31:37 Pacific
OS: winxp
CPU/Ram: p4
Product: dell
Comment:

Can I have a heading centered in its table cell,
but the text below it left-aligned with it any easy way? thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: robber2
Date: November 30, 2006 at 22:26:51 Pacific
Reply:

i don't recommend it, but this works:
[code]
<html>
<body>
<table width="100%" border="10px">
<tr>
<td>
<center>
<h1>Maybe
</h1>
</center>

like this?</p>
</td>
<td>
<center>
<h1>Maybe
</h1>
</center>

like this?</p>
</td>
<td>
<center>
<h1>Maybe
</h1>
</center>

like this?</p>
</td>
</tr>
</table>
</body>
</html>
[/code]


0

Response Number 2
Name: robber2
Date: November 30, 2006 at 22:28:19 Pacific
Reply:

add the start tags for "p" and you're good to go.


0

Response Number 3
Name: smumdax
Date: December 1, 2006 at 19:04:55 Pacific
Reply:

Heading doesn't give you much control over it's appearance. Why not use 2 different DIVs and align the first one centered (that woud be your actual Heading) and the other one aligned left.

P gives you line breaks that you might not necessarely want.

On the other hand, if you want to keep you heading and not use DIVs, you could also simply put the heading in it's seperate cell, and the other cell under it would contain the rest of the text you want aligned left.

Im sure there are multiple alternatives.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: simple html question

Simple HTML Question www.computing.net/answers/webdevel/simple-html-question/1910.html

Simple PHP Question www.computing.net/answers/webdevel/simple-php-question/2630.html

HTML form www.computing.net/answers/webdevel/html-form-/638.html