Need Help On HTML Code - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Need Help On HTML Code (1396 Views)
| Need Help On HTML Code by Vstuffs(op): 9:30pm On Aug 18, 2014 |
Well I just decided to go back and restart learning html again..... I wanted to design a small site(kind of a little project)(without adding much css code)....testing stuffs(b/4 I enter css and js I have a problem I want the site to be a three column site,but I do not know how to arrange it to be a three colum site(I do not want to use the table tag) These are the codes I wrote <!DOCTYPE HTML>This is the header <div align="left">I want this to be the first colum by the left <div align="center">second colum in the center <div align=right>I want this to be the third colum by the right,and I want all colums in the same line <font align="center">Please how do I arrange all this codes in the same line using the div tag and not the table tag |
| Re: Need Help On HTML Code by fattbabakay(m): 10:03pm On Aug 18, 2014 |
Do u mean on d same row or column?? Row is horizontal,column is vertical....If it's row,That "align" should work...buh u'll need to toy with the width & margin of d 'div' ...dey shud all av d same width, then manage d margin-left nd margin-right(using percentage for easy calculation)... |
| Re: Need Help On HTML Code by maekhel(m): 10:13pm On Aug 18, 2014 |
to achieve that u must make use of css. Have edited your code to include the css stylings: <!DOCTYPE HTML>Though this is a rough design but it shld achieve wat u want. |
| Re: Need Help On HTML Code by Vstuffs(op): 10:29pm On Aug 18, 2014 |
maekhel: to achieve that u must make use of css.Thanks a lot sir...it works..thanks Very much |
| Re: Need Help On HTML Code by Vstuffs(op): 10:31pm On Aug 18, 2014 |
fattbabakay: Do u mean on d same row or column?? Row is horizontal,column is vertical....If it's row,That "align" should work...buh u'll need to toy with the width & margin of d 'div' ...dey shud all av d same width, then manage d margin-left nd margin-right(using percentage for easy calculation)...Thanks a lot...I will try to edit the code using all this steps to see if I can get different results..but similar design |
| Re: Need Help On HTML Code by maekhel(m): 10:54pm On Aug 18, 2014 |
Vstuffs: Thanks a lot sir...it works..thanks Very muchu r welcum, am glad it work for you |
| Re: Need Help On HTML Code by Djtm(m): 10:54pm On Aug 18, 2014 |
Set widths for the div blocks, maybe 30% each, then set display to ""inline-block"". You'd need to make use of paddings and margins for it to look nice. |
| Re: Need Help On HTML Code by PROFLOVY(m): 11:42pm On Aug 18, 2014 |
Vstuffs: Well I just decided to go back and restart learning html again.....Vsuffs.. Try to make ur codes neater.Maybe you should use an external style sheet… The radio box will not work..give both ‘yes’ or ‘no’ a name..To make a three column website.. create two divs 1st<div> </div>...float this to the left...This would be your first column... 2nd<div> </div>...float this to the right...This would wrap up your second and third columns.. Then make another two divs inside the previous 2nd div... Float dis also left and right respectively... <html> <head> <title>blah blah</title> </head> <body> <div style="float:left;border:1px solid #000" width="?px" height="?px"> </div> <div style="float:right;border:1px solid #000" width="?px" height="?px"> <div style="float:left;border:1px solid #000" width="?px" height="?px"> </div> <div style="float:right;border:1px solid #000" width="?px" height="?px"> </div> </div> </body> </html> Then put your codes there..you can remove the borders later.. |
| Re: Need Help On HTML Code by Vstuffs(op): 7:09am On Aug 19, 2014 |
PROFLOVY: Vsuffs.. Try to make ur codes neater.Maybe you should use an external style sheet…Thanks Bro..I will do as instructed |
| Re: Need Help On HTML Code by Vstuffs(op): 7:10am On Aug 19, 2014 |
Djtm: Set widths for the div blocks, maybe 30% each, then set display to ""inline-block"". You'd need to make use of paddings and margins for it to look nice.Thanks Sir...... |
Drop Ur Site For Help.traffic:advice:html Code(updated • Free New E-book On HTML And CSS • The Html Code For The Naira ₦ Is • 2 • 3 • 4
Has Anyone Used PAYU Payment Gateway? State Your Experience. Is It Safe? • 7 Best Recommended Wordpress Web Hosts • 85,150 Facebook Page Like For Sale (very Engaging, See Photos)