eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > User interface > Existing Templates

Existing Templates Want to adjust logo or center some piece of text in your directory? Get advice on how to do it in this forum dedicated to pre-installed templates.

Reply
 
Thread Tools Display Modes
Old 11-28-2006   #1
mike errico
 
Join Date: Nov 2006
Posts: 21
mike errico is on a distinguished road
Default 5 Days Fixed Width and Center

How do I get 5 Days to center and be a fixed width? Im new w/ tpl files. I tried changing the header.tpl from <div class="page"> to <div align="center">, but the search box and logo did not center with the rest of the template..

I also tried changing the width in the css file from 100% to 800px. No luck...

Any advice?
mike errico is offline   Reply With Quote
Old 11-28-2006   #2
Tilek E.
eSyndiCat Support Team
 
Join Date: Sep 2006
Posts: 384
Tilek E. is on a distinguished road
Default

Hi, mike errico!

In order to move the logo you should:

1) Open the header.tpl file.

* Find the following code:
Code:
	<div class="header">
		&nbsp;
	</div>
* and replace it with:
Code:
	<div class="header">
		<div class="logo">
			<a href="/"><img src="{$img}logo.gif" alt="" title="" /></a>
		</div>
	</div>
* delete the next <div class="logo">...</div> because you have already paste it into the header div.

2) Open the style.css file.

* Find the following strings:
Code:
div.logo
{
	position: absolute;
	top: 40px;
	left: 3px;
}
* change it to:
Code:
div.logo
{
	position: relative;
	top: 40px;
	left: 3px;
}
Now the logo must be in the proper place.

Move the search box changing the following text in style.css:
Code:
div.search-form
{
	position: absolute;
	top: 128px;
	left: 10px;
	line-height: 30px;
}
to:
Code:
div.search-form
{
	position: relative;
	top: 8px;
	left: 10px;
	line-height: 30px;
}
If you have some problems with these modifications do not hesitate to ask.
__________________
Regards,
Tilek Eshenaliev

eSyndiCat Templates Customizations: just submit a ticket to "Custom Modification Requests"!
Tilek E. is offline   Reply With Quote
Old 11-28-2006   #3
mike errico
 
Join Date: Nov 2006
Posts: 21
mike errico is on a distinguished road
Default

That worked thanks ..

The only thing is that the date and language divs need to be fixed. I tried changing the div.date in the css to relative, didnt work. Something in header.tpl im guessing?
mike errico is offline   Reply With Quote
Old 11-29-2006   #4
Tilek E.
eSyndiCat Support Team
 
Join Date: Sep 2006
Posts: 384
Tilek E. is on a distinguished road
Default

Quote:
I tried changing the div.date in the css to relative, didnt work. Something in header.tpl im guessing?
You can leave header.tpl as it is. Just paste the following code to style.css instead of date div and lang-switch div:

Code:
div.date
{
	position: absolute;
	width: 700px;
	text-align: right;
	top: 22px;
	color: #000;
	line-height: 15px;
	font-size: 0.85em;
	font-weight: normal;
	padding: 0px;
}
Code:
div.lang-switch
{
	position: absolute;
	margin-left: 184px;
	top: 22px;
	line-height: 15px;
	font-size: 0.85em;
	font-weight: normal;
	padding: 0;
}
You can see that position: absolute requires top and left or right attributes. So if we write only one top attribute a div will automatically align with the ancestor div. I've tested this modification in different browsers. It works well.
__________________
Regards,
Tilek Eshenaliev

eSyndiCat Templates Customizations: just submit a ticket to "Custom Modification Requests"!
Tilek E. is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Forum Jump


All times are GMT. The time now is 01:15 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources