Home › Forums › All Other Themes › Image on home cannot be aligned center
- This topic has 6 replies, 2 voices, and was last updated 7 years, 2 months ago by Sonnal S Sinha.
-
AuthorPosts
-
February 23, 2017 at 2:49 pm #63025
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 1The logo will be showed, but it is aligned left. Howecome?
Please see: http://taxinijmegen.comFebruary 23, 2017 at 2:50 pm #63026Or is there an other way to insert the image on top in the center?
February 24, 2017 at 6:00 am #63098Hi,
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,
DaveFebruary 28, 2017 at 11:37 am #63630Great! On a desktop it is there now. But not in my responsive homepagine on my iPhone. What to I need to do?
February 28, 2017 at 12:06 pm #63632Hi,
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,
DaveFebruary 28, 2017 at 12:54 pm #63643Thanks! It works!
February 28, 2017 at 12:58 pm #63648If you found our service good kindly review us here:
https://www.sktthemes.org/forums/topic/reviews-and-testimonials/ -
AuthorPosts
- The topic ‘Image on home cannot be aligned center’ is closed to new replies.