What is the modern way to make a line halfway through the screen? I saw this in the textbook and now it looks a little old fashioned.
how
<hr size="6" width="50%">
How would you do something like this if you were making a web page now?
You can continue to use <hr />, but I would suggest abandoning the built-in attributes. This is just another element, and you can move the style information in css:
<hr />
hr { width:50%; }
You can use CSS to style the string.
hr{ width:50%; }
HTML:
CSS
hr { width: 50%; }
CSS, - :
.. , reset , .
<div> :
<div>
#line { width: 50%; margin: 0 auto; /* Centered */ height: 4px; /* The border adds to height */ border: 1px solid #888888; border-bottom: 1px solid #E9E9E9; border-right: 1px solid #E9E9E9; }
Source: https://habr.com/ru/post/1788222/More articles:Individual exception handling Grails - javaКак найти относительное отношение в строках в mysql - mysqlGrails general exception handling in grails 1.1 - exception-handlingMultithreaded performance std :: string - c ++Deploy large releases in Maven Central - maven-2$ (window) .load OR $ (window) .scroll in the same function? - javascriptremoveEldestEntry - override - javaRuby: add an object to the end of an array - ruby | fooobar.comMultilevel use of thread impersonation - c ++Can I save one project in Xcode, but create it for Mac OS X, Apple Mac Store and iOS devices? - iosAll Articles