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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Please take a look at my little problem
Old 11-04-2004, 01:48 PM Please take a look at my little problem
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
Hey guys. I've got a little problem
Take a look at the included picture


The above sentence has to much white space below it.
The first letter and the first part of the first sentence are in two different spans.

Don't know which property i need for this.


Greetz
Thierry
Attached Images
File Type: gif littleproblem.gif (21.3 KB, 25 views)
__________________
Know what to Download

Please login or register to view this content. Registration is FREE

Last edited by lajkonik86; 11-04-2004 at 01:51 PM..
lajkonik86 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-04-2004, 02:26 PM
Webmaster Talker

Posts: 589
Trades: 0
It may be either cellspacing=0 or the problem might be with image borders. I cannot say without the correct code.
thevirus is offline
Reply With Quote
View Public Profile
 
Old 11-04-2004, 05:27 PM
sdcdesign.co.uk's Avatar
Extreme Talker

Posts: 198
Location: High Wycombe, Buckinghamshire, London
Trades: 0
hm, looks like the size of your W affects the whole cell and then spaces it weirdly...
__________________
[ Insert witty, yet highly intelligent signature here ]
sdcdesign.co.uk is offline
Reply With Quote
View Public Profile Visit sdcdesign.co.uk's homepage!
 
Old 11-04-2004, 11:11 PM
NateDogg's Avatar
Extreme Talker

Posts: 163
Trades: 0
could you post the relevant code??
__________________
Nathan


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
NateDogg is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 03:47 AM
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
Sure:

HTML Code:
<div id="frame">
<span id="titel"><span id="firstletter">W</span>arhammer 40.000: Dawn of War </span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras posuere magna vel eros. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque urna velit, ornare semper, sodales eget, eleifend nec, lorem. Pellentesque iaculis, massa vel dignissim tristique, elit lectus pretium lacus, eget interdum nibh orci vitae lacus. Mauris sit amet tortor ac velit ornare imperdiet. Nullam quis tortor. Mauris vitae tortor vitae est pharetra varius. Nam ac purus. Aenean auctor, dolor ornare euismod laoreet, massa ipsum vehicula pede, sed bibendum leo arcu ac augue. Fusce hendrerit, nisl sed viverra elementum, urna metus ultricies nunc, a malesuada metus felis at felis. Phasellus vestibulum, nunc faucibus facilisis iaculis, lectus odio ullamcorper diam, vel vehicula augue leo quis tellus. Aliquam in enim varius nunc aliquam interdum. Proin consectetuer feugiat dolor. Donec congue pulvinar dolor. 
</div>
CSS:
PHP Code:
div#frame { text-align: left; width: 600px; height: 180px; background-color: white;
    
margin0px autopadding10;
    
border-left3px solid #000000;
    
border-right3px solid #000000;
    
border-bottom3px solid #000000;
    
border-top3px solid #000000;} 
span#titel {
color:#000000;
font-size:14px;
}
span#firstletter {
font-familyBlack Chancerysans-serifArialVerdanaHelvetica;
color#000000;
font-size:22px;

__________________
Know what to Download

Please login or register to view this content. Registration is FREE
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 10:09 AM
Junior Talker

Posts: 4
Trades: 0
I encountered the same problem and never found the problem. The only thing I know is that It's css related. This comment doesn't help, i'm just suscribing to the thread
LukeD is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 12:26 PM
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
Lol. Well atleast more people will see the tread because of your post.
I tried using css valign but didn't get is to work.

Greetz
Thierry
__________________
Know what to Download

Please login or register to view this content. Registration is FREE
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 01:03 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
It's not necessarily CSS related. But the CSS is affecting it.

It's the top and bottom spacing of the particular font/size. Because you are using a different size font for the first letter, the spacing adjusts accordingly. The larger the font, the greater the spacing would be.

Try changing the line-height on both #frame and #title1.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 02:35 PM
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
Thanks Prissed

After a bit of experimenting with the setting I set the line height to 1px on the firstletter.
Offcourse setting all 3 # at the same length also works.
But when i set line-height on the firstletter to 1px the font size doesn't have any effect anymore and it displays the same as being in only one #

This is the CSS i ended up with.
PHP Code:
div#frame { text-align: left; width: 600px; height: 180px; background-color: white;
    
line-height20px;
    
margin0px autopadding10;
    
border-left3px solid #000000;
    
border-right3px solid #000000;
    
border-bottom3px solid #000000;
    
border-top3px solid #000000;} 
span#titel {
color:#000000;
font-size:14px;
}
span#firstletter {
font-familyBlack Chancerysans-serifArialVerdanaHelvetica;
color#000000;
font-size:22px;
line-height1px;

No matter what line height you chose in the #frame the margins between lines are normal now.
Thanks a lot Prissed and everybody else for helping me with this problem.


Cheers,
Thierry


PS. LOL http://www.prissed.com/Sections-article75-page1.php
__________________
Know what to Download

Please login or register to view this content. Registration is FREE
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 03:58 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Great!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 05:29 PM
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
Link

If prissed aint there somewhere she should be.
__________________
Know what to Download

Please login or register to view this content. Registration is FREE
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2004, 05:33 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Hahaha! That obvious, eh?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Please take a look at my little problem
 

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