Jump to content

how to remove the gap


Guest oldboy

Recommended Posts

Hi

I use the Hompage to show up a bigger image instead of text.

Cant figure out which file should be alerted to remove the gap between the top border and the image.

(have a look at the screen shot)

Killer skin.

_gap.jpg

Link to comment
Share on other sites

When you edit your home page in the editor it is stored in a file in your language directory. This file is home.inc and can be found at language/en/home.inc. The layout.css file controls site wide layout and this can be found at skins/Killer/styleSheets/layout.css

Link to comment
Share on other sites

When you edit your home page in the editor it is stored in a file in your language directory. This file is home.inc and can be found at language/en/home.inc. The layout.css file controls site wide layout and this can be found at skins/Killer/styleSheets/layout.css

Thanks for quick reply...

I found both files.

But which part of the layout.css controls the layout of the home page??

should i look for "padding-top" to remove the gap...

??

Link to comment
Share on other sites

Take a look at your image properties (right click on the image and choose properties) in fckeditor in admin control panel/Home Page. In the alignment choose 'top'.

Hi, well i tryed the top aligment. the html code looks like this:

<center><a href="http://www.houseofdap.com/index.php?act=viewCat&amp;catId=2" border="0"><input type="image" alt="homepage text" src="http://www.houseofdap.com/images/mpage/mpage_text.jpg" align="top" longdesc="undefined"/></a></center>

What i think is that the gap is where the "Title:" for the Home Page should be, i have removed the text from the Title box..

but i guess this have to be removed somewhere else. Like a template file or????

Link to comment
Share on other sites

You'll find it in your home.inc file

My home.inc looks like this:

<?php

$home['copy'] = '<center><a href=\"http://www.houseofdap.com/index.php?act=viewCat&catId=2\" border=\"0\"><input type=\"image\" alt=\"homepage text\" src=\"http://www.houseofdap.com/images/mpage/mpage_text.jpg\"/></a></center>';

$home['enabled'] = '1';

$home['title'] = '';

?>

I tried to remove this ---> $home['title'] = '';

but the gap remains :-(

Link to comment
Share on other sites

Hi, the problem is a line break <br /> that appears there coded into skins/Killer/styleTemplates/content/index.tpl:

<!-- BEGIN: index -->

<div class="boxContent">

<span class="txtContentTitle">{HOME_TITLE}</span>

<br />

{HOME_CONTENT}

</div>

Here is a good way to get rid of the space you don't want up there! ;)

Open skins/Killer/styleTemplates/content/index.tpl

Find this code:

<span class="txtContentTitle">{HOME_TITLE}</span>

<br />




Replace it with this code:




<!-- <span class="txtContentTitle">{HOME_TITLE}</span>

<br /> -->

NOTE: You really should restore the home.inc.php file to its original state. It has nothing to do with your problem, and it may come in handy should you decide to use text up there again some day. You can re-activate the code in content/index.tpl by removing the html comment tags I've added (compare the code boxes above).

Link to comment
Share on other sites

Hi, the problem is a line break <br /> that appears there coded into skins/Killer/styleTemplates/content/index.tpl:

<!-- BEGIN: index -->

<div class="boxContent">

<span class="txtContentTitle">{HOME_TITLE}</span>

<br />

{HOME_CONTENT}

</div>

Here is a good way to get rid of the space you don't want up there! :P

Open skins/Killer/styleTemplates/content/index.tpl

Find this code:

<span class="txtContentTitle">{HOME_TITLE}</span>

<br />




Replace it with this code:




<!-- <span class="txtContentTitle">{HOME_TITLE}</span>

<br /> -->

NOTE: You really should restore the home.inc.php file to its original state. It has nothing to do with your problem, and it may come in handy should you decide to use text up there again some day. You can re-activate the code in content/index.tpl by removing the html comment tags I've added (compare the code boxes above).

Thanks markscarts, that was it...

I restored home.inc.php and yes im useing comment taqs as you suggested..

Have few more questions, but have to leave so i post it next time.

Just wanted to thank you and:

>>>URL removed, please read the rules.<<<

Edited by oldboy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...