-
AuthorPosts
-
January 13, 2011 at 6:01 am #158677
The image I’m using for a logo jumps downward a bit when you hover over it?
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
January 13, 2011 at 9:50 am #371642Adjust in height value here accordingly to 52px
h1.logo a {template.css (line 548)
background: url(“../images/logo.png”) no-repeat scroll left top transparent;
display: block;
height: 57px;
width: 222px;
}January 13, 2011 at 12:54 pm #371667So I did the suggestion and it worked perfectly.
Then I got greedy and started messing around with the width. :-[ Ended up just going back to normal settings with the modification listed above.
It worked before I messed around but now the image still jumps even though set to 52 height?/* Logo Image —*/
h1.logo { height: 57px; margin-top: 40px; width: 222px; }h1.logo a {
background: url(../images/logo.png) no-repeat left top;
display: block;
height: 52px;
width: 222px;
}aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
January 13, 2011 at 7:51 pm #371705Mainly, You will need to adjust these dimensions in accordance with updated logo image by you 🙂
January 13, 2011 at 9:27 pm #371732Okay, no problem.
Can you explain what causes the logo to jump?
Do I need to decrease the height?aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
January 13, 2011 at 9:36 pm #371736<blockquote>Can you explain what causes the logo to jump?</blockquote>
As you will notice that default logo consists of two images ::
/templates/ja_teline_iv/images/logo.png
Now, upon hover, The background position property has been applied to show in second logo which is hidden in active stage. Basically, This works through background positioning (css styling)
http://www.w3schools.com/css/pr_background-position.asp
If you wish, You can simply change this ::
h1.logo a:hover, h1.logo a:focus { background-position: left bottom; }
to
/*h1.logo a:hover, h1.logo a:focus { background-position: left bottom; }*/
and this wont happen, then 🙂
1 user says Thank You to aman204 for this useful post
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by herb2586 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum