- This topic has 9 replies, 3 voices, and was last updated 3 years, 11 months ago by
Leo.
-
AuthorPosts
-
June 14, 2019 at 8:22 am #929707
Steen
Is it possible to align logo and slider horizontally in header ?
I added at smart slider via elements
set the container for content and images in the slider to 1360px w and 400px h
The logo is 450px w and 400px hI want the logo plus the slider to be 1360px w and 400px h in total.
I tried to use images 910px w and 400px h plus the logo 450px and 400px h, but I cant figure it out.
I’ll be thankful of any help
June 14, 2019 at 9:11 am #929751Leo
StaffCustomer SupportHi there,
Try adding the slider using a header widget:
https://docs.generatepress.com/article/header-widget/Then we can provide some CSS to tweak it.
Let me know π
June 14, 2019 at 11:00 am #929860Steen
Thx for fast reply.
I’ve deleted the slider in elements and added the slider in a header widgetJune 14, 2019 at 2:46 pm #930017David
StaffCustomer SupportHi there.
try adding this CSS:
.header-widget { max-width: 100% !important; width: 100%; display: flex; } .header-widget .widget_smartslider3 { flex: 1; }
You may want to add some white space to the right hand side of your image logo. If i add margin or padding to open up the image it will resize it.
June 15, 2019 at 1:46 am #930267Steen
we are almost there π
I would prefer the bottom margin to be the same as the right margin, which is 20px.
How can I do this ?
Right now there is no bottom margin within the image.June 15, 2019 at 8:26 am #930622David
StaffCustomer SupportThe issue is the logo is not tall enough to the fill the height that slider is setting. So you would need to adjust the logo height or reduce the height of the slider.
June 15, 2019 at 2:03 pm #930863Steen
Hmmm. they are both 400px high. I’ll figure it out by trail and error π
June 16, 2019 at 3:17 am #931136David
StaffCustomer SupportThe tricky part of this is:
a. the slider is being displayed at a fixed ratio so it will always be displayed in full view.
b. the image will resize to fit whatever space the slider leaves in the header.You can see this if you reduce your browser size the the image will shrink. So we may have to look at an alternative method for doing this.
June 16, 2019 at 12:03 pm #931603Steen
Hmmm, I see what you mean.
The only alternative I can think of, is to have the logo within the image of the slider. Which is not what I really want.
The reason of this being the hazel of changing the images will be more complicated for the customer. Instead of just changing the images in the slider, they’ll have to attach the logo to each image and then add it to the slider.
Do you have any suggestions to solve the challenge ?June 16, 2019 at 1:56 pm #931650Leo
StaffCustomer SupportI would say that adding the logo in is the way to go.
Or maybe find an example of the effect you are trying to achieve and we can take a look to see how it was done?
-
AuthorPosts
- You must be logged in to reply to this topic.