Home › Forums › Calendar Products › Events Calendar PRO › Css Padding/Margin
- This topic has 10 replies, 5 voices, and was last updated 8 years, 9 months ago by Support Droid.
-
AuthorPosts
-
January 23, 2012 at 8:26 am #13826Kelvin BrowneParticipant
The content for my events is touching the edge of the content box how can i adjust the padding/margin to give it space.
http://www.staugustinesbrooklyn.org/events/
http://www.staugustinesbrooklyn.org/event/bingo/January 23, 2012 at 11:12 am #13874RobMemberHey 3dgraphics. We should be able to help you out here; let me get our dev Jonah to take a look. Expect a response from him over the next 24 hours.
January 23, 2012 at 11:33 am #13886Kelvin BrowneParticipantTanks a lot Rob
January 24, 2012 at 10:03 pm #14052JonahParticipantHey 3dgraphics,
There’s a lot of ways you could do this…
For the main events page try editing events.css (make a duplicate copy and place in an ‘events’ folder in your theme) – find line 184 and change the declaration to:
.events-archive .hentry {
padding: 15px;
}
For the single events try something like:
.single-tribe_events .tribe_events {
padding: 15px;
}
You’ll have to probably play around with things some more to get it just right in your theme. I hope this helps get you pointed in the right direction though.
January 25, 2012 at 9:29 am #14098Kelvin BrowneParticipantThanks Jonah, works great.
January 25, 2012 at 10:15 am #14104JonahParticipantAwesome, glad to hear!
May 14, 2012 at 8:00 am #19135BenjiParticipantHi Guys, I have a padding issue I think with the archive feed in a blog roll when my studio press child theme on genesis pulls and events post. The content excerpt for the events are not good, tried playing with CSS but not making the change.
you can see a demo site here http://websolutionsdirect.com where you will see the top post on the blog roll on the home page is an event and you can see the layout is not correct.
I look forward to your thoughts on this padding issue. and Where I need to edit in the events CSS file.
May 14, 2012 at 8:04 am #19137JonahParticipantHey Benji,
In your theme’s style.css on line 681 you have this:
.page .page, .post {
margin: 0;
padding: 30px;
}
You need to add a class for events like so:
.page .page, .post, .post-wrap .tribe_events {
margin: 0;
padding: 30px;
}
May 14, 2012 at 8:48 am #19147BenjiParticipantLegend, it worked!
Now I have put it onto the main site and seems like I need some tweak to the code to pick up event venue archives?
load this page and you will see the event is good now but the venue still is not?
May 14, 2012 at 9:36 am #19151JonahParticipantHey Benji, glad that worked! To get the venues in there just add the following:
.page .page, .post, .post-wrap .tribe_events, .post-wrap .tribe_venue {
margin: 0;
padding: 30px;
}
July 7, 2015 at 6:19 am #976810Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Css Padding/Margin’ is closed to new replies.