...

View Full Version : Why no line spacing in html?



machineartgirl
02-25-2009, 08:29 PM
OK. I'm new at this, but here is a piece of my code. There is no line spacing between the last two links, I am not sure where to put the </br> or if there is another option. Does it have to do with my css?
you can view the problem at http://www.machineartinc.org/links.html

<div class="bg">

<img alt="" src="images/links.gif" class="title" />

<p class="p"><a href="http://www.cppc.org"><img alt="" src="images/home_cppc.gif" class="logo" /></a><br />
CPPC - Claims Prevention and procedure Council </p>

<p class="p"><br /><br /><a href="http://www.moving.org/"><img alt="" src="images/AMSA.gif" class="logo" /></a><br /><br/>
AMSA - American Moving and Storage Association </p>

<p class="p"> </br></br><a href="http://www.freshome.com">freshome.com</a></br></br></p>

<p class="p"></br></br><a href="http://www.coralgableschamber.org">Coral Gables Chamber of Commerce</a></br>

</div>

slurmdog
02-25-2009, 08:33 PM
<p class="p"> </br></br><a href="http://www.freshome.com">freshome.com</a></br></br></p>

<p class="p"></br></br><a href="http://www.coralgableschamber.org">Coral Gables Chamber of Commerce</a></br>

Try <br /> instead. Also, I would try to the <br /> marks outside of the class tags.

Rowsdower!
02-25-2009, 09:32 PM
Try <br /> instead. Also, I would try to the <br /> marks outside of the class tags.

And to add to this, line breaks (<br />) should only be used to actually break the text to wrap onto a new line. They are not appropriate to use for vertical spacing. For spacing issues you can/should use margins/padding as needed to acheive your design goals. Check the tutorial in my sig below to bone up on your HTML/CSS skills and learn the ropes a bit more.

machineartgirl
02-25-2009, 09:41 PM
ok I was so caught up in where to place the br's that I didn't realize that my syntax was off. Thanks for not laughing. and rowsdower I will check out your tutorial. I am just trying to modify a template that I purchased.

Excavator
02-25-2009, 09:54 PM
Could be the validator might help you here. Have a look at your open tag - http://validator.w3.org/check?verbose=1&uri=http://www.machineartinc.org/links.html

machineartgirl
02-25-2009, 10:02 PM
never used a validator before
I will now !
good analogy:thumbsup:

Excavator
02-25-2009, 10:12 PM
never used a validator before
I will now !
good analogy:thumbsup:

Check out the links in my sig. It's like a free code checker... it helps but it's not foolproof. There is both valid code that doesn't work and code that works but is not valid.
It's the best approach to making your site compatable in all browsers.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum