Community Forums › Forums › Design Tips and Tricks › Genesis Slider – Excerpt Positioning CSS
This topic contains 12 replies, has 2 voices, and was last updated by Lisa at OG 4 months ago.
-
AuthorPosts
-
November 20, 2012 at 6:07 pm #999
We are using a studiopress theme from the community. We have a genesis slider at the top of our home page. We have made the slider images full screen width at 100% regardless of size of monitor. We’d like to set the excerpt content so that it lines up with the content below it (960)
rather than flush with the left margin – we figure 60% would work so it’s always in the same place no matter what size monitor; however, not
sure what code to add or to where. Tried a few things unsuccesfully. Anyone got a solution for this?
URL http://www.originalginger.com/demos/legacy-2/
Owner and Co-Founder of Original Ginger
Where Fresh Strategy Meets Digital Design
Website: http://www.originalginger.comJanuary 14, 2013 at 3:25 pm #11925Did you resolve this issue? I dont see an excerpt that looks out of place at the moment. Let me know if you need more assistance with this!
January 14, 2013 at 4:01 pm #11942I did not resolve it. As a result, we haven’t used the excerpt. If you have some potential solutions, I’d love to hear about them Cathy.
Owner and Co-Founder of Original Ginger
Where Fresh Strategy Meets Digital Design
Website: http://www.originalginger.comJanuary 14, 2013 at 4:08 pm #11946Since this is a dev site, can you put up an excerpt so I can see it? Then I can make a more informed suggestion.
January 14, 2013 at 4:34 pm #11953I have now down so. I hope this helps. I have been unable to create a solution to date that will allow the excerpt to stay to the left in a 960 grid, rather than moving to the left margin of the slider when it resizes based on monitor size. Any help would be so much appreciated.
Owner and Co-Founder of Original Ginger
Where Fresh Strategy Meets Digital Design
Website: http://www.originalginger.comJanuary 14, 2013 at 6:18 pm #11968Try this:
find .slide-excerpt in the style.css
and add to the bottom of it, before the closing bracket “}”
<code>left: 35%;</code>
January 14, 2013 at 6:41 pm #11969Yes, thank you Cathy, this solution works nicely at 23.25% for a full size monitor BUT when the slider resizes to an iPad it pushes the excerpt out of line to the middle of the image and on an iPhone it completely disappears off of the screen altogether. In these cases the excerpt does actually need to be against the left margin. I’m thinking that we will need to add something to our code that the left: 23.5%; does not apply when viewed on a mobile device. Any ideas?
Owner and Co-Founder of Original Ginger
Where Fresh Strategy Meets Digital Design
Website: http://www.originalginger.comJanuary 14, 2013 at 6:49 pm #11971Great. You can specify that the centering only is for large screens using this:
<code>
@media screen and (min-width: 960px) {
your css here
}
</code>January 14, 2013 at 6:53 pm #11972Okay, I will try this. Hmmm. I’ve removed all other responsive code that existed in the original theme because we do separate mobile optimized coding for our client sites. Would that be why the code you have given me isn’t working? I added this at the end of my standard CSS:
@media only screen and (max-width: 600px) {
.slide-excerpt {
left: 23.25%;
}
}
Owner and Co-Founder of Original Ginger
Where Fresh Strategy Meets Digital Design
Website: http://www.originalginger.comJanuary 14, 2013 at 6:56 pm #11974Sorry Lisa, you put it together like this:
<a href="http://www.studiopress.com/forums/users/media/" rel="nofollow">@media</a> screen and (min-width: 960px) { .slide-excerpt { left: 35%; }}January 14, 2013 at 7:02 pm #11976Right. Thank you for assisting but it still has no affect on the iPad or iPhone. There was a typo above. I did use min-width and 960px.
Owner and Co-Founder of Original Ginger
Where Fresh Strategy Meets Digital Design
Website: http://www.originalginger.comJanuary 15, 2013 at 11:57 am #12077This is the same % indent on all widths: http://www.studiopress.com/responsive/?http://www.originalginger.com/demos/legacy-2/
To target individual devices, try this tutorial: http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
January 21, 2013 at 1:18 pm #13534Thanks CathyT.
Owner and Co-Founder of Original Ginger
Where Fresh Strategy Meets Digital Design
Website: http://www.originalginger.com -
AuthorPosts
You must be logged in to reply to this topic.