0

HTML - small problem really but I'm curious.

<html> <head> <title> <p> Error_606 </p> </title> </head> <body> <p align= "center"> <b> <i>Error_606's personal blog </b> </i></p> <br/> <hr width= "400 px"/> <p align= "center"> <i> Hello! :) my name is (a secret) Error_606. You can call me 606 if you want to, as well as Liv which is my "name". In this blog I'm going to write about my development as a programmer and other <p align="left"> more boring stuff xD.</i></p> </body> </html> .................................................................................................................................. In here is a piece of the page, that I started writing to retest what do I know of HTML. And after the second <p align="left"> in the text, the quote 'more boring stuff' has a big break between the text and itself. How to close the distance in there?? Thank you :)

29th Dec 2017, 3:29 PM
Error_110-000-110
Error_110-000-110 - avatar
4 Respostas
+ 7
Give it a <br /> ;)
29th Dec 2017, 3:34 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
There may be a more elegant designer way (positioning, maybe) but I often use 'margin' to collapse unwanted gaps. So... [CSS] p { margin-top: 0px; margin-bottom:0px; /* margins are shared, must do both */ } margin... part of the 'box model': https://www.w3schools.com/css/css_boxmodel.asp
29th Dec 2017, 3:43 PM
Kirk Schafer
Kirk Schafer - avatar
0
I start all of my css files with “*{margin:0;}” to act as a reset on all standard margins. Not sure if this will help.
29th Dec 2017, 8:24 PM
Max Tremaine
Max Tremaine - avatar
0
Thank you all :)
29th Dec 2017, 8:40 PM
Error_110-000-110
Error_110-000-110 - avatar