- Posts: 3
- Thank you received: 0
Resizing logo variable makes template weird
-
michaelstrac
Inactive member - Topic Author
- New Member
Less
More
14 years 1 month ago #3455
by michaelstrac
Resizing logo variable makes template weird was created by michaelstrac
Hello
I have a question.
I have been trying to resize the logo on this template for a while now, and have yet to be successful. I changed the variable in layout.css from:
.logo {
height:115px;
width:270px;
float:left;
}
to:
.logo {
height:79px;
width:500px;
float:left;
}
That made the template go out of alignment and look really weird. I have uploaded an attachment to show what happened.
I would like some help in making this look alright again.
Thank you
I have a question.
I have been trying to resize the logo on this template for a while now, and have yet to be successful. I changed the variable in layout.css from:
.logo {
height:115px;
width:270px;
float:left;
}
to:
.logo {
height:79px;
width:500px;
float:left;
}
That made the template go out of alignment and look really weird. I have uploaded an attachment to show what happened.
I would like some help in making this look alright again.
Thank you
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
14 years 1 month ago - 14 years 1 month ago #3459
by milos
Replied by milos on topic Re: Resizing logo variable makes template weird
Please edit file /templates/hot_designnow/index.php and change width and height of the logo images there as well. This is around line 226 and looks like
Also, change value 290 to 520 (in your case) in line
Code:
<a href="index.php"><img src="<?php echo $template_path ?>/images/logo.png" width="249" height="34" alt="Hot Design Now" /></a>
Also, change value 290 to 520 (in your case) in line
Code:
$searchWidth = $templateWidth - 290;
Last edit: 14 years 1 month ago by milos.
The following user(s) said Thank You: michaelstrac
Please Log in to join the conversation.
-
michaelstrac
Inactive member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
14 years 1 month ago #3462
by michaelstrac
Replied by michaelstrac on topic Re: Resizing logo variable makes template weird
Thank you for your quick response.
One question:
Where is that last line located?
Thanks
One question:
Where is that last line located?
Thanks
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
14 years 1 month ago #3463
by milos
Replied by milos on topic Re: Resizing logo variable makes template weird
In file /templates/hot_designnow/index.php, around line 80.
Please Log in to join the conversation.
-
michaelstrac
Inactive member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
14 years 1 month ago #3464
by michaelstrac
Replied by michaelstrac on topic Re: Resizing logo variable makes template weird
Ok found it.
Its almost perfect now though.
Take a look at the image i have attached, and tell me what i need to do to fix that.
Some details.
The logo is 300 x 47
I changed it accordingly in index.php and layout.css as per your instructions.
Even so, it goes slightly out of alignment.
Would like to know what to do.
Thank you for all your help so far.
Its almost perfect now though.
Take a look at the image i have attached, and tell me what i need to do to fix that.
Some details.
The logo is 300 x 47
I changed it accordingly in index.php and layout.css as per your instructions.
Even so, it goes slightly out of alignment.
Would like to know what to do.
Thank you for all your help so far.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
14 years 1 month ago #3467
by milos
Replied by milos on topic Re: Resizing logo variable makes template weird
Increase the value in line "$searchWidth = $templateWidth - 290;"
Try to "fine-tune" it.
Try to "fine-tune" it.
Please Log in to join the conversation.
Time to create page: 0.084 seconds