Log In · Register

 
changing the how much space <br> makes, I am pretty sure
none345678
post Nov 19 2008, 08:22 PM
Post #1


Sex, Blood, & RocknRoll
*******

Group: People Staff
Posts: 5,305
Joined: Nov 2007
Member No: 596,480



I am pretty sure there is a code for this right? To edit how much space the br makes between words and such.

I think this was already asked but I couldn't find the old topic so I wasn't sure.
 
 
Start new topic
Replies
--DANNY--
post Nov 21 2008, 07:25 AM
Post #2


the 1&only Danny Dahl
****

Group: Member
Posts: 149
Joined: Apr 2007
Member No: 518,959



I would use <hr /> in place of <br />
and then adjust the height with:

<style type="text/css">
hr { height: 20px; }
</style>


... play around with the 20px value until you get the desired spacing.
 
Maccabee
post Nov 21 2008, 04:41 PM
Post #3


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



QUOTE(--DANNY-- @ Nov 21 2008, 06:25 AM) *
I would use <hr /> in place of <br />
and then adjust the height with:

<style type="text/css">
hr { height: 20px; }
</style>


... play around with the 20px value until you get the desired spacing.


Hr? Wouldnt that only work if it were invisible.

I dont think she wants to have a big line. just invisible space.
 
--DANNY--
post Nov 22 2008, 04:18 AM
Post #4


the 1&only Danny Dahl
****

Group: Member
Posts: 149
Joined: Apr 2007
Member No: 518,959



QUOTE(JosephCohen123 @ Nov 21 2008, 01:41 PM) *
Hr? Wouldnt that only work if it were invisible.

I dont think she wants to have a big line. just invisible space.


Ahh , yes..
Well you can use border:none; but Internet Explorer is lame and doesn't let that work. It works in all other major browsers, Firefox, Google Chrome, Opera, etc.

Ya again, I'm used to working with mainly Firefox so I forget about the stupid little things here and there you have to find workarounds for to get them to work in IE.

If you wanted something that worked in all browsers, you could use:
<div class="hr"><hr/></div>

and do something like this...

<style type="text/css">
div.hr { height: 20px; }
div.hr hr { display: none; }
</style>


I dunno... usually this isn't an issue or need, because things are separated into paragraphs/sections with <p></p> and the bottom/top margin is set to adjust your spacing between sections/paragraphs/etc.
 

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: