Thursday, December 24, 2009

HTML coding help?

Ok, so I know how to center things ( %26lt; center %26gt; ), but how do you get thinks to stay on the right or left side of the page?


I know I've seen the code before, but I can't remember it.





Any ideas?HTML coding help?
Actually %26lt;center%26gt; is a deprecated tag that shouldn't be used in new work. Instead, use the proper CSS style tags. If you want to align text within a paragraph, for example, it goes like this:





%26lt;p style=';text-align:left;';%26gt;(your content)%26lt;/p%26gt;


%26lt;p style=';text-align:center;';%26gt;(your content)%26lt;/p%26gt;


%26lt;p style=';text-align:right;';%26gt;(your content)%26lt;/p%26gt;





If you want an entire paragraph to stick to the left side or right side of a larger container, use the float property, like this:





%26lt;div%26gt;


%26lt;p style=';float:left;';%26gt;(your content)%26lt;/p%26gt;


%26lt;p style=';float:right;';%26gt;(your content)%26lt;/p%26gt;


%26lt;/div%26gt;





Depending on how you set the width of those elements, the code above could result in two side-by-side paragraphs, one on the left and one on the right, or in two consecutive paragraphs.HTML coding help?
hi


u can use :


%26lt;p align=left%26gt;


...


%26lt;/p%26gt;


u can also use an invisible table and use %26lt;td align=rignt%26gt; for example


hope that help


bye for now
%26lt;div align=';left';%26gt;


%26lt;div align=';center';%26gt;


%26lt;div align=';right';%26gt;


%26lt;div align=';justify';%26gt;
First of all, you should use %26lt;div align=';center';%26gt;. Actually, forget I said that. I meant you should use CSS. To enable (use) CSS in your document, put these EXACT tags in your %26lt;head%26gt; tag. %26lt;style type=';text/css';%26gt;%26lt;/style%26gt; ACTUALLY, I have a better idea. Just go to http://www.w3schools.com/default.asp.
google it and you should find a list of the top 50 HTML codes... lol not really helping but thats how I learnt!!!

No comments:

Post a Comment