- This topic has 6 replies, 2 voices, and was last updated 8 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The topic ‘Image on home cannot be aligned center’ is closed to new replies.
Home › Forums › All Other Themes › Image on home cannot be aligned center
Hi, in the theme options in SKT Black Pro I tried to insert an image (logo) on home using this code:
It should be showed in Theme options > Homepage slider > Slide Image 1
The logo will be showed, but it is aligned left. Howecome?
Please see: http://taxinijmegen.com
Or is there an other way to insert the image on top in the center?
Hi,
Kindly go to Appearance>>Theme Option>>Basic Setting>>Custom CSS Box
Add this code there:
.top-bar img{position:relative; display:block; margin:0 auto;}
Regards,
Dave
Great! On a desktop it is there now. But not in my responsive homepagine on my iPhone. What to I need to do?
Hi,
Kindly go to Appearance>>Theme Options>>Basic Settings>>Custom CSS Box:
Add this code there:
@media screen and (max-width:479px) {
a.arrow-down, #slider .top-bar p { display:block;}
.top-bar img { width:45%; height:auto;}
#slider .top-bar p { font-size:15px; margin-top:-18px;}
#slider .top-bar a.contact, .contact-banner a { margin-top:-8px;}
}
@media screen and (min-width:480px) and (max-width:767px) {
a.arrow-down, #slider .top-bar p { display:block;}
.top-bar img { width:50%; height:auto;}
#slider .top-bar p { font-size:15px; margin-top:-10px;}
#slider .top-bar a.contact, .contact-banner a { margin-top:0;}
}
Regards,
Dave
Thanks! It works!
If you found our service good kindly review us here:
https://www.sktthemes.org/forums/topic/reviews-and-testimonials/
Butcher WordPress Themes We have handpicked the best bunch of butcher WordPress themes for small, medium – sized and big industries, dealing with meat products […]
With the necessary testing and surveys, we have compiled the best WordPress themes with image slider in header for your multiple business sites. Whether you […]
Floral WordPress Themes Are you looking for the best Floral WordPress Themes to build your online flower shop? If yes, so you have come across […]