Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q2001 How do I make a line longer, e.g. how can I stretch a line to fit the entire page?

irt.org | Knowledge Base | HTML | Q2001 [ previous next ]

Q2001 How do I make a line longer, e.g. how can I stretch a line to fit the entire page?

You mean an <HR> line? I don't know that you can get it completely from side to side, but try adding WIDTH="100%" right after the HR inside the >. Lower percentages make it smaller, obviously. You can also add heights 1 through 6 to the same command. You can make it pretty big and wide.

The following was submitted by Dan Souza

If you're refering to a line of text, use the "justify" attribute with the <div> tag. This is only supported by version 4 or higher browsers

<div align="justify">Your Text here</div>

The text between the open and close <div> tags will stretch accross the page.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.