-
AuthorPosts
-
May 21, 2018 at 2:26 am #959551
Hi,
When I use the diagonal bottom border on the color section, the content (3 columns) has too much padding at the top. To fix this I’ve added css:
div.template-page.content {
padding-top: 0px !important;
}But this doesn’t just change the padding for this color section but for all other content as well.
How can I address just this one section. (the css has to address the large top padding that is set for the columns)Thank you,
LisaMay 21, 2018 at 12:43 pm #959710Hey sundara88,
I adjusted the code a little bit for you.
Please check.Best regards,
VictoriaMay 22, 2018 at 3:14 am #960098HI Victoria,
I decided to use whitespace as padding and have added that where needed, (sorry I hadn’t seen your email yet) But now I want to add the code again:
div.template-page.content {
padding-top: 0px !important;
}
But now this code doesn’t work, the top padding doesn’t get any smaller. I would like the content in the diagonal section to move up about 30px. Can you have a look and see why this code is not working now?
Thank you so much,
LisaMay 23, 2018 at 8:16 pm #961167Hi,
You have cache / performance activates, so that is the reason it does not work out for you.
Best regards,
BasilisMay 24, 2018 at 1:34 am #961300Hi Basilis,
I don’t know what that means and what I need to do?
How do I get rid off the padding?Another thing; I’ve put an API key in for a Google map but I get this message:
Could not connect to Google Maps with this API Key.
It is not restricted and i’ve tried deactivation all plugins, but nothing has worked.
I have this same problem with another site as well…
I hope you can help me with this.
Thank you,
LisaMay 25, 2018 at 1:46 pm #962108Hi Lisa,
Can you try to create a new google map api key?
I tested it with the api key that I have and it works fine.
Screenshot that it works in private content.Best regards,
NikkoMay 26, 2018 at 2:26 am #962490Thanks Nikko, for some reason the map is working now!
I still haven’t solved my previous problem though:
This css is not working :
div.template-page.content {
padding-top: 0px !important;
}
the top padding in the home page diagonal section doesn’t get any smaller. I would like the content in the diagonal section to move up about 30px. Can you have a look and see why this code is not working?
Thank you!
LisaMay 28, 2018 at 1:47 pm #963188Hi Lisa,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#diagonal-section-home.avia-section .template-page.content { padding-top: 30px; }
If you need further assistance please let us know.
Best regards,
Victoria- This reply was modified 6 years, 6 months ago by Victoria.
May 29, 2018 at 1:42 am #963481Hi Victoria,
The css code that you gave me is practically the same as the one I already was using, they both don’t work.
The code that had !important behind it didn’t work:
div.template-page.content {
padding-top: 0px !important;
}The weird thing is when I go to Chrome > Inspect, the top padding (about 50px) lights up on the screen but in the small bottom picture on the right it shows no top padding, just a bottom padding.
I have a screenshot I can send you but I don’t know how…
Can you please have another look?
Thank you,
LisaMay 31, 2018 at 9:11 am #964681Hi Lisa,
Did you see the message in private? The code is almost the same, except the one I gave you is just for that one section and will not affect all the elements on your website.
Here is the message from private:
The code was not working because you have this code in your Quick css with !important that overrides all the other code added. Please remove it. And then you can use the code given above.
Screenshot is below.
Best regards,
VictoriaJune 1, 2018 at 2:36 am #965034Hi Victoria,
Even when I use your code, the top padding is still exactly the same. In your screenshot where the red arrow is pointing from: that is the area that is too high, I want to at least halve that area. If you look at the diagonal section on my homepage; all the content is closer to the bottom than the top, not centred.
And if I make the section higher to add a bit more green below the content, it adds all the green at the top and the padding gets even bigger!
I hope you understand what the problem is…
Thanks,
LisaJune 4, 2018 at 4:24 pm #966606Hi Lisa,
I have checked it and the problem was the custom height which was set to 690px, I have reduced it to 470px.
Then for padding I changed it from small padding to huge padding and to make it look centered I have removed this code in Quick CSS:#diagonal-section-home.avia-section .template-page.content { padding-top: 30px; }
Let us know if this helps.
Best regards,
NikkoJune 5, 2018 at 1:54 am #966930Yes this is great.
Thanks Nikko!June 5, 2018 at 8:45 am #967063Hi,
Glad we could help. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJune 6, 2018 at 1:13 am #967574Hi Rikard,
you can close it
ThanksJune 7, 2018 at 9:05 am #968284Hi sundara88,
Glad we could help. :)
Feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Addressing certain columns only with css’ is closed to new replies.