 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
RpD
Joined: 03 Apr 2008
Posts: 1
|
| Posted: Thu Apr 03, 2008 10:00 am An other small tutorial text error |
|
|
Hi...
On the webpage...
http://www.htmlcodetutorial.com/linepar/_BR.html
...it explains the formatting of a limerick with <BR> carriage returns, with a plain example... and then states that <BR> does -not- affect paragraph formatting and provides a sample with paragraph center alignment... yet your example which should be center aligned is, instead, left aligned, just like the 'plain' example.
I did view the source for the page and copied the aligned example code to notepad, saved as HTML and opened in a browser where it was indeed center aligned, but your tutorial webpage does -not- center align the center-aligned example.
I'm not a coder (yet), just a tech that noticed the inconsistency... so I'll leave it to you all to figure out the display anomaly. ;)... |
|
|
kanenas
Joined: 14 Dec 2004
Posts: 341
|
| Posted: Thu May 01, 2008 10:09 pm It's because of CSS styling |
|
|
| It's because the page links to a CSS stylesheet with a ruleset selecting all 'p' elements that sets their alignment to 'left'. Ignore the "align" HTML attribute as it's deprecated and has been replaced by the CSS "text-align" property. The tutorials need a major updating. |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|