Reply
<br \> line height
Old 07-11-2006, 10:58 AM <br \> line height
Extreme Talker

Posts: 232
When you go to my site (http://www.houseofpaign.com/) and look at the white space inbetween the most popular and most recent tables, the whitespace is different.

I have the tables seperated by a <br \>, but it is too big. is there a way to make the BR tag smaller?

i don't really want to put a clear spacer image. any ideas out there?
houseofpaign is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-11-2006, 03:49 PM Re: <br \> line height
LadynRed's Avatar
Super Moderator

Posts: 6,354
Location: Tennessee
create a CSS rule for <br /> (your slash is backwards)

smallBr{
font-size: 1px;
line-height: 0; --- adjust as needed
}
Then in your HTML, use <br class="smallBR" />
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is online now
Reply With Quote
View Public Profile
 
Old 07-11-2006, 04:05 PM Re: <br \> line height
Jdinh04's Avatar
Super Talker

Posts: 132
Name: J. Dinh
Location: Okemos, MI
Instead of messing around with the CSS, ad adding that "BR" height when you don't need to. I just simply created 3 tables, 2 row and 2 columns. I merged the first colum with 2 rows into 1 column and the second one into 1 column and two rows. This will look much better and less work, all you have to do now is just add in the links and its styles into the tables.

Heres the code, it would be much better I hope.

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>House of Paign</title>
<style type="text/css">
<!--
.style5 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 14px; }
.style6 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>

<body>
<table width="801" height="583" border="0">
<tr>
<td width="352" rowspan="2" valign="top" bgcolor="#FEFBEB" style="padding: 5px"><span class="style5">Categories<br />
<br />
</span><span class="style6">Add links here ... </span></td>
<td width="439" valign="top" bgcolor="#FEFBEB" style="padding: 5px"><span class="style5">Most Popular</span> <br />
<br />
<span class="style6">Add links here ... </span></td>
</tr>
<tr>
<td valign="top" bgcolor="#FEFBEB" style="padding: 5px"><p><span class="style5">Most
Recent<br />
<br />
</span><span class="style6">Add links here .... </span></p>
</td>
</tr>
</table>
</body>
</html>
Let me know if you need any other help.
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
Old 07-11-2006, 04:50 PM Re: <br \> line height
LadynRed's Avatar
Super Moderator

Posts: 6,354
Location: Tennessee
Sorry, but the better method is CSS,it takes far less effort and far, far less maintenance. Dumping bad tables for layout would be the best of goals here !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is online now
Reply With Quote
View Public Profile
 
Old 07-11-2006, 09:30 PM Re: <br \> line height
Novice Talker

Posts: 10
Name: Cody Singsaas
Two ways you can accomplish this. One would be by implementing some basic style attributes in the table tag.

margin-bottom: 10px;
margin-left: 10px;
etc.

Or, nest each in of those three tables within a table that has three cells instead of just two (one cell for the left column, two cells for the right column). Each of the yellow boxes occupies it's own cell. Then you can simply adjust the cellpadding. Make sure you set the inner table to take up 100% of height and width.
__________________
IE Internet Solutions / Cody Singsaas (President)
Low cost web hosting from a trusted provider
URL http://www.ieinternetsolutions.com / Email cody@ieinternetsolutions.com
csingsaas is offline
Reply With Quote
View Public Profile
 
Old 07-12-2006, 12:50 AM Re: <br \> line height
ChipJohns's Avatar
I don't know! Do you?

Posts: 477
Name: Chip Johns
Location: Savannah Georgia
Tables are only good for eating dinner @;-)
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 07-12-2006, 08:07 AM Re: <br \> line height
Jdinh04's Avatar
Super Talker

Posts: 132
Name: J. Dinh
Location: Okemos, MI
From what I known so far they have work best for me, so I stick with them. To be honest, I am not great of a coder, but when it comes down to business they do the job. Of course I wouldn't mind learning other ways and techniques, but thats just my opinion.
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
Old 07-12-2006, 10:01 AM Re: <br \> line height
LadynRed's Avatar
Super Moderator

Posts: 6,354
Location: Tennessee
Quote:
Tables are only good for eating dinner @;-)
Amen ChipJohns !!!

They do the job, but they do it at a cost. Read this and understand WHY tables for layout is bad practice:
http://www.hotdesign.com/seybold/everything.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is online now
Reply With Quote
View Public Profile
 
Old 07-13-2006, 06:19 AM Re: <br \> line height
manthu64's Avatar
Average Talker

Posts: 27
Name: Manthan Dudani
Location: India
hello house of paign,

you can add one rows instead of <br> tag.

like :

Quote:

<tr>
<td height="8"></td>
</tr>
it will work nicely. then also if u got the provlem then tell freely. Thanks.
manthu64 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to <br \> line height
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15111 seconds with 13 queries