Home pcDTR Forum
If you like the work i do, you know what to do.
Welcome, Guest
Please Login or Register.    Lost Password?

Fixing too much space at the top of text
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Fixing too much space at the top of text
#174
Fixing too much space at the top of text 6 Months, 1 Week ago Karma: 0
hope it will help

remember: use it at your own risk, because the problem may different. don't forget to make a backup first.

I think pcDTR is great but i had a problem when using different font. there is always too much space at the top of text like this

i see the cache there is a big image with all text created by pcdtr and it show normal. so i think the problem is not on the image.

i see the page source and found that the problem is in background-position: 0 -...px at every #pcdtr...{...}.

i made a littlle modification at pcdtr.php at line 247

after

$width = $item->get('line-widths');

add

$newposheight = $this->height[$item->get('group', 'default')]+10;
$newheight = $item->get('height')-10;

and at line 249 ( 251 after add two line above )

edit
$css .= "#pcdtr".$this->id."{background-image:url(changeme.".$item->get('group', 'default').");background-position:0 -".$this->height[$item->get('group', 'default')]."px;width:".$width."px;height:".$item->get('height')."px;}";

into

$css .= "#pcdtr".$this->id."{background-image:url(changeme.".$item->get('group', 'default').");background-position:0 -".$newposheight."px;width:".$width."px;height:".$newheight."px;}";

after that i've got the result like this

hope it will help. it works on my problem. if you still got the problem try to add line-height at pcdtr styles.css

remember: use it at your own risk, because the problem may different. don't forget to make a backup first.
embang
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#192
Re:Fixing too much space at the top of text 4 Months, 4 Weeks ago Karma: 0

Or you could have just left everything the way it was and used style declaration "background-transparent:true;"... and that's it.
John
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Banner
Copyright © 2010 pcDTR. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.