site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


Gwellin
Premium
join:2004-05-31
Regina, SK
Reviews:
·Access Communica..

reply to Sentinel

Re: Possible to assign a "margin" to any element?

Try using the [code][/code] pseudo-tags that most forums offer you. You could also enter it directly but replace the angle brackets with their meta-character equivalent; for example I can display angle brackets < > by entering this: &lt; &gt;

That combined with some previewing to make sure you got it right will give a more understanding post.

-

Anyways, about the horizontal rules you were trying to make. You can easily use negative margins in this case for your rule; make them equal to the body margins and that should be it.

<hr style="height: 0px; border-width: 1px 0px 0px; border-top: 1px solid #0000ff; margin: 10px -10px;" />
 
Assuming a body margin of 10px.

Also, horizontal rules are block elements, so you don't have to defined the width at all. In fact you shouldn't to prevent possible cross-browser incompatibilities.

--
Here to help all those in need, whenever I can.


Sentinel
Premium
join:2001-02-07
Florida
kudos:1

That did the trick. Thanks Gwellin. Much appreciated.


Tuesday, 29-May 17:14:24 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics