+ 1

Define body{} width and height?

I am starting a webpage. Presently, my webpage looks like the standard of 2003 at best. What can i do to make it look less like a banner? Do I set width for whole <html> or only <body>? Should sections be block level? https://code.sololearn.com/WX42W7vPVGD3/?ref=app

1st Jul 2018, 3:11 PM
Joshua Morgan
Joshua Morgan - avatar
5 Réponses
+ 2
Would be interesting make a div to set width, not set width on body tag. You can do this on style tag: #center { position: relative; margin: 0 auto; width: YOUR-WIDTHpx; } and apply this inside body tag: <div id="center"> Content </div> it will let the content of your webpage centralized and with the width that you want. I hope that it can help you!
1st Jul 2018, 3:23 PM
Daniela Alves
Daniela Alves - avatar
+ 1
also try using rgb or hexadecimal colors that cordinate. I have seen many a great website suffer from bad color choices
5th Jul 2018, 8:12 PM
Rtvq
Rtvq - avatar
+ 1
I reviewed the lesson on "position" and realized I didn't really need it anywhere in my code... I made some changes. thanks everyone! Now just why is my paragraph not showing up. :(
5th Jul 2018, 9:12 PM
Joshua Morgan
Joshua Morgan - avatar
0
Start to remove that fixed position to body.... For me your make unuseful use of positioning
1st Jul 2018, 4:31 PM
KrOW
KrOW - avatar
0
Joshua Morgan I think that you refer to <div> block.... Hint: Check the previous <iframe> tag. Its closed good? 😉
5th Jul 2018, 9:28 PM
KrOW
KrOW - avatar