This is a discussion on "Text wont align" within the Web Page Design section. This forum, and the thread "Text wont align are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Text wont align
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Text wont align
Im putting our address on our website and for some reason it wont align.
Ive tried text align, ive tried regular <p align="center"> . I aligned the Heading, that was no problem, but the text wont align. here is the code <html> <h2 align="center">Contact Us</h2> <address style="color:black"> <strong>000000000000<br> 0000000000000000000<br> 0000000000000000000<br> 0000000000000000000<br> Fax: 000000000000000<br> <a href="mailto:exampleexample">Email Us : bobthebuilderexample</a><br> </address> </html> I cant see where Ive gone wrong with it. Im confused lol. |
|
|
|
||||
|
Re: Text wont align
Use
HTH
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: Text wont align
Why don't you do it in the proper CSS way:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: Text wont align
Yes you may do that.. and you have to style the h2 tag as well..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
||||
|
Re: Text wont align
Do you? Obviously you will if you want to change the font size etc. of the h2 tag, but if the h2 tag is inside a DIV that has "text-align: center" applied to its style, then everything in that DIV will be centered, so there's no need to apply "text-align:center" to the h2 tag.
|
|
|||
|
Re: Text wont align
He don't have any div in his code
My code ^ will center the address according to the <address id="add"> I guess what you mean is for him to wrap the address tag with a <div> with the {text-align: center} style
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
||||
|
Re: Text wont align
Quote:
Ah yes, I see what you mean. I thought the <address> part was a DIV. Oopsies |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vertical Text Align | Biddlesby | Web Page Design | 1 | Mar 13th, 2008 22:39 |
| Drop down menu alignment problems. Div wont vertically align. | Itsumishi | Web Page Design | 7 | Mar 4th, 2008 04:57 |
| Align text vertically in a box | josoap | Web Page Design | 3 | Jul 12th, 2007 17:29 |
| Text-Align | Marc | Web Page Design | 11 | Jun 1st, 2007 07:22 |
| help with text-align: center | iemerick | Web Page Design | 1 | Jun 9th, 2005 18:05 |