Community Forums › Forums › Archived Forums › Design Tips and Tricks › Responsive Slider – Remove Border & Space Around Image
Tagged: border, genesis responsive slider, parallax-pro
- This topic has 8 replies, 2 voices, and was last updated 9 years, 10 months ago by Marcy.
-
AuthorPosts
-
January 19, 2015 at 5:34 pm #137995KimMember
Hi. I am using Parallax Pro. I followed the instructions here to add the slider at the top above the home widgets. I currently only have one image set up so there is no "sliding" at this time. However, it works well.
My question is how do I remove the gray border & the white space around my image? I would like the image to fill the entire area. Both my image & my genesis slider settings are 1700 x 500.
Thanks so much!!!!
http://www.ignition.churchJanuary 20, 2015 at 12:19 am #138014MarcyParticipantIn the tutorial, in the style.css section, Sridhar has:
.home-slider #genesis-responsive-slider { border: none; padding: 0; }
This is the section that removes the white and gray borders.
If it doesn't work when it is added like that, you may have to use !important, like this:.home-slider #genesis-responsive-slider { border: none !important; padding: 0 !important; }
Marcy | Amethyst Website Design | Twitter
January 20, 2015 at 10:34 am #138074KimMemberThank you for responding. Unfortuantely, putting "!important;" in the location made no change. =(
I'm at a loss and my client really wants it removed.
January 20, 2015 at 11:09 am #138082MarcyParticipantThis is what you have:
.home-slider #genesis-responsive-slider { border: none; !important; padding: 0; !important; }
Note that you have two " ; " per line, and I have only one. Perhaps you could just copy and paste?
Marcy | Amethyst Website Design | Twitter
January 20, 2015 at 11:54 am #138095KimMemberThanks, Marcy. I copied & pasted it hoping it would work and it did not. Hummmm....
January 20, 2015 at 1:00 pm #138113MarcyParticipantTry moving the slider CSS up into your main CSS section in your style.css.
You want that CSS for ALL screen sizes.When a tutorial tells you to add the code to your style.css, they usually mean just BEFORE the @media sections, unless they tell you to add to a particular @media section.
It looks to me like your slider CSS is currently stuck down in the @media sections, and it looks to me like the parenthesis around your @media sections are off.
First move the slider CSS above ALL @media sections.
Then carefully look at what you have in the @media and match the close parentheses on each of those sections.
Go back to the original CSS to compare line-by-line, if you need to.You can do this!
Marcy | Amethyst Website Design | Twitter
January 21, 2015 at 12:03 pm #138200KimMemberHummm okay I'm not sure I understand. I moved the slider CSS up before the @media section. The @media section is the original code as I've done nothing to that. Are you referring to what looks to be extra parentheses like it shows below? Remove the last one?
@media only screen and (max-width: 768px) {.home-slider .slide-excerpt {
width: 100%;
}}
January 21, 2015 at 12:19 pm #138201KimMemberOkay, I should have checked....after moving the slider up the borders are gone. The @media section is exact to the original so I guess that's all I needed to do was move it! Yay! Thank you so much Marcy, I really do appreciate it!!!!!
January 21, 2015 at 1:03 pm #138204MarcyParticipant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.