- This topic has 9 replies, 2 voices, and was last updated 10 years, 3 months ago by
Tom.
-
AuthorPosts
-
April 17, 2016 at 7:31 am #187434
Jorge
I want to insert a map on a header with a width of 100%. I’m using a plugin that allows you to configure the map with that width and generate a short code to paste. The problem is that when the short code is pasted into the header or a section not looks 100%.
Configurartion:
Header
Container type: fluidSecction
Box type: fluid
Container type: fluidIn the header it maintains the container content.
In the section is almost 100% but with a border on each side.April 17, 2016 at 11:11 am #187504Tom
Lead DeveloperLead DeveloperHi there,
Give this CSS a try:
.inside-header.grid-container { max-width: 100%; }Adding CSS: https://generatepress.com/knowledgebase/adding-css/
April 17, 2016 at 4:03 pm #187562Jorge
ok, I downloaded and installed the plugin, but do not quite know how it works.
I thought that when opened, I could see all the CSS code.
Do I have to paste just that? Sorry for my ignorance.April 17, 2016 at 10:50 pm #187586Tom
Lead DeveloperLead DeveloperNo worries! Once Simple CSS is activated, go to “Appearance > Simple CSS” and just paste the code above, then save 🙂
April 18, 2016 at 6:00 am #187640Jorge
thanks, but i tried it and it does not work
April 18, 2016 at 9:18 am #187683Tom
Lead DeveloperLead DeveloperCan you link me to the page?
April 18, 2016 at 3:20 pm #187783Jorge
No, I’m in the process of creation and i have on the local server.
Now I can do without that, but I would like to know how.April 18, 2016 at 11:18 pm #187830Tom
Lead DeveloperLead DeveloperThe code I gave you should work.
Make sure the map is set to be 100% or at least a very large width.
Otherwise there’s not much I can do without actually seeing what’s going on I’m afraid.
April 19, 2016 at 4:31 pm #188007Jorge
I wanted the map occupied the entire width of the header or section.
The section is almost 100%, but with margins. In the header it seems as if the fluid container function does not work with the map.
It is rare why it works with any image.
The plugin lets you adjust the map width to 100%.I decided to put the map in a section contained for now. If the customer wants the width to 100% will try other plugins.
thanks!
April 19, 2016 at 10:32 pm #188048Tom
Lead DeveloperLead DeveloperAh, the margin can be removed in the Element Spacing add-on (Customize > Element Spacing > Header).
Or you can use CSS:
.inside-header { padding: 0; } -
AuthorPosts
- You must be logged in to reply to this topic.