Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS trouble with line spacing
Old 10-10-2005, 03:14 AM CSS trouble with line spacing
RoLLiNLoW54's Avatar
Super Talker

Posts: 116
Location: Canandaigua, NY
Trades: 0
hey guys, i'm having trouble with line spacing coding my latest site. the problem is, in IE, the lines are aligned 'correctly' with very little vertical space between the line breaks. in firefox, there is extra space. i have attatched an image to show you what i'm talking about



the only CSS i have specified for the text is this:

Code:
.galleriesText
{
margin: 0px;
padding: 0px;
color: white;
font-family: Arial, Verdana, Sans Serif;
font-size: 11px;
}
and the HTML is:

Code:
<span class="galleriesText">dolphy day 2005 (132 images)<br />
</span>
<span class="galleriesText">dolphy day 2005 (132 images)
</span>
__________________

Please login or register to view this content. Registration is FREE
: A distinguished web presence begins with distinguished web developers.
RoLLiNLoW54 is offline
Reply With Quote
View Public Profile Visit RoLLiNLoW54's homepage!
 
 
Register now for full access!
Old 10-10-2005, 03:42 AM
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
Hi RoLLiNLoW54,

try using line-height in your css
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 10-10-2005, 01:31 PM
RoLLiNLoW54's Avatar
Super Talker

Posts: 116
Location: Canandaigua, NY
Trades: 0
Thanks, Gringo! I knew there was an attribute I was missing I just couldn't figure out which one it was.
__________________

Please login or register to view this content. Registration is FREE
: A distinguished web presence begins with distinguished web developers.
RoLLiNLoW54 is offline
Reply With Quote
View Public Profile Visit RoLLiNLoW54's homepage!
 
Old 10-10-2005, 03:16 PM
RoLLiNLoW54's Avatar
Super Talker

Posts: 116
Location: Canandaigua, NY
Trades: 0
okay, i've got another problem. i played with the line height and still cannot get it to match up. they are much closer, but still pose a problem.

heres the difference between the fox and IE:



what i'm trying to accomplish is what firefox gets right. IE, the lines are squished together too much..

heres the CSS:

Code:
#galleriesTextContainer
{
height: 130px;
margin: 0px;
padding: 0px;
margin-left: 8px;
line-height: 8pt;
}

.galleriesText
{
margin: 0px;
padding: 0px;
color: white;
font-family: Arial, Verdana, Sans Serif;
font-size: 11px;
}

and the HTML:

Code:
<div id="galleriesTextContainer">
     <span class="galleriesText">dolphy day 2005 (132 images)<br />dolphy day 2004 (101 images)<br />buffalo wild wings (47 images)<br />lemoyne 2005 (425 images)<br />lemoyne 2004 (28 images)<br />lemoyne 2003 (147 images)<br />syracuse nationals 2004 (43 images)<br />nyc / jersey 2005 (245 images)<br />minutes monte (29 images)<br />my truck (67 images)<br />phil's t-type (70 images)
    </span>
</div>
__________________

Please login or register to view this content. Registration is FREE
: A distinguished web presence begins with distinguished web developers.

Last edited by RoLLiNLoW54; 10-10-2005 at 03:25 PM..
RoLLiNLoW54 is offline
Reply With Quote
View Public Profile Visit RoLLiNLoW54's homepage!
 
Old 10-11-2005, 12:07 AM
sameer785's Avatar
Super Talker

Posts: 115
Location: Kathmandu,Nepal
Trades: 0
Both browsers, Firefox and IE, gave exactly the same line height to me. I tested it in psp using guides. Here're the images.

Attached Images
File Type: gif test1.gif (4.5 KB, 143 views)
File Type: gif test2.gif (4.3 KB, 143 views)

Last edited by sameer785; 10-11-2005 at 12:10 AM..
sameer785 is offline
Reply With Quote
View Public Profile
 
Old 10-11-2005, 12:12 AM
RoLLiNLoW54's Avatar
Super Talker

Posts: 116
Location: Canandaigua, NY
Trades: 0
weird, im getting a 3 pixel line space in IE, and a 4 pixel linespace in Firefox. i've tested on several different computers and IE is coming up short in each case.
__________________

Please login or register to view this content. Registration is FREE
: A distinguished web presence begins with distinguished web developers.
RoLLiNLoW54 is offline
Reply With Quote
View Public Profile Visit RoLLiNLoW54's homepage!
 
Old 10-12-2005, 02:46 AM
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Try using min-height and max-height within your line-height.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 10-12-2005, 04:05 AM
RoLLiNLoW54's Avatar
Super Talker

Posts: 116
Location: Canandaigua, NY
Trades: 0
Quote:
Originally Posted by Twitch
Try using min-height and max-height within your line-height.
hey guys, i 'fixed' (hacked) it. for anyone interesting in how... i just used a font size switch like so:

Code:
line-height: 8pt;
font: 8pt/9pt arial,helvetica,sans-serif;
__________________

Please login or register to view this content. Registration is FREE
: A distinguished web presence begins with distinguished web developers.
RoLLiNLoW54 is offline
Reply With Quote
View Public Profile Visit RoLLiNLoW54's homepage!
 
Old 10-12-2005, 12:53 PM
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
I don't particularly work with pt, as I feel px to be more accurate and inline with the rest of the coding. You quoted my post, yet put nothing. And the switch method is something I have never thought of nor used.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 10-12-2005, 01:42 PM
RoLLiNLoW54's Avatar
Super Talker

Posts: 116
Location: Canandaigua, NY
Trades: 0
Quote:
Originally Posted by Twitch
I don't particularly work with pt, as I feel px to be more accurate and inline with the rest of the coding. You quoted my post, yet put nothing. And the switch method is something I have never thought of nor used.
whoops, sorry bout that. accidentally hit the quote instead of reply
__________________

Please login or register to view this content. Registration is FREE
: A distinguished web presence begins with distinguished web developers.
RoLLiNLoW54 is offline
Reply With Quote
View Public Profile Visit RoLLiNLoW54's homepage!
 
Reply     « Reply to CSS trouble with line spacing
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.71527 seconds with 13 queries