- This topic is empty.
-
AuthorPosts
-
November 23, 2013 at 12:12 pm #156997ClarkRSParticipant
Hi ppl,
I’m new in wordpress and css, and i have one really annoying problem :( I’ve created revolution slider, to be autoresponsive and that’s all ok, but on my home post, rev slider looks like it is boxed, much smaller than it should be. It looks like it is in some box or something? This is from style.css:
[Mod Edit] Snipped code. That’s way too much for the forum. Please provide a link to the site in question or provide a reduced test case on a platform like Codepen.
November 23, 2013 at 4:11 pm #157002stw2011ParticipantIt will be helpful for others to help you, I think, if you can post a link to your site.
November 24, 2013 at 7:24 am #157037ClarkRSParticipantThank you good people :)
My website is cgnekretnine[dot]com, and rev_slider is on my homepage.
November 24, 2013 at 1:47 pm #157046SenffParticipantI don’t really see anything wrong with it to be honest. Can you be more specific? Any particular browser?
November 24, 2013 at 3:19 pm #157050ClarkRSParticipantHi @Senff, thank you for trying to help me :)
In any browser (i’m using Chrome), i have white borders around my revolution slider. My idea is to be full width + autoresponsive, no white borders around revolution slider.
U see, i dont want to have those white borders around my slide.
But, it looks like it is (rev_slider) in some white box, but it is already set to be autoresponsive, here is pic:
Again, txn you all for trying to help me :)
P.S. If i delete “width: 100%” and set padding to 0px, and set my rev slider to fixed 1350×500, than on my comp it looks like it’s ok, no borders around my slider, but on every other resolution, especially on my android mobile it looks awful :(
November 24, 2013 at 3:52 pm #157054Tom HouyParticipantIt looks like there are some hidden navigation arrows that are directly underneath the slider, which is what is causing that extra gap at the bottom. They are currently set to “display: hidden”, which will make them invisible but they will still take up space:
<div style="visibility: hidden;" class="tp-leftarrow tparrows navbar hidearrows"></div> <div style="visibility: hidden;" class="tp-rightarrow tparrows navbar hidearrows"></div>
But if if they are changed to this instead, they will be invisible and not take up any space either.
<div style="display:none !important;" class="tp-leftarrow tparrows navbar hidearrows"></div> <div style="display:none !important;" class="tp-rightarrow tparrows navbar hidearrows"></div>
(The addition of “!important” might not be necessary, and it would be best to leave that out if it works without it.)
I would check through the settings more carefully for the slider to make sure there aren’t any more options to completely disable the navigation arrows. And perhaps contact the plugin developer regarding that issue if you can’t find a solution within the admin panel for the slider.
November 24, 2013 at 4:16 pm #157057ClarkRSParticipantYou think that the problem is with my revolution slider? Not with my homepage css settings?
November 24, 2013 at 5:19 pm #157060SenffParticipantI’d say the slider IS responsive — the slider takes up as much widht as it can, BUT since you set the wrapper to only 1000 pixels wide, this is also the width of the slider.
As for the white space above and below it, that’s probably because of the 30 pixel top/bottom padding of
.home-post
.So there’s nothing wrong with the (settings of) the slider, it’s the things that are surrounding it.
November 25, 2013 at 7:21 am #157071ClarkRSParticipantHm… Tnx @Senff, i see now that the wrapper is the problem.
When i change wrapper to 100%, slider looks as it should be, but footer and slider bar changes completely and looks messed up, i need them to stay 1000px width.
So, is there any solution, not to change the wrapper (wrapper stays 1000px) but to exclude it from home post (homepost to be full width)?
Or to change the wrapper to 100%, and somehow to set the wrapper for slider bar and footer and copyright bar to be 1000px?
Tnx again mate, i really appreciate it.
November 25, 2013 at 8:21 am #157075SenffParticipantI would say for the home post, make the wrapper 100% (so that it’s full width), but put the footer and copyright bar (and any other elements you want to keep as they are) in their own wrapper with a 1000px width.
November 25, 2013 at 2:28 pm #157093ClarkRSParticipantI don’t know how to do that. If i change
.wrapper { width: 1000px; margin: 0 auto; position: relative; }
to width: 100%, than i dont know how to put 1000px wrapper for footer, copyright bar and slider bar. Every solution i tried, wasn’t successful.
I have to find out way to exclude
.home-post
from wrapper.November 25, 2013 at 3:55 pm #157101ClarkRSParticipantTHANK GOD, finally a solution :D
/* ==== HOME ===== */
.home-post { float: left; width: 100%; padding: 0px 0; }
.home-post .wrapper { width: 100% !important; margin: 0 auto !important; position: relative; }THANK YOU ALL FOR TRYING TO HELP ME ! :))
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.