Posted: September 17, 2013 at 12:47 pm
|
September 17, 2013 at 12:47 pm Before upgrading EE a couple of months ago, I had a two-column format for laying out upcoming classes. Now I only have one column, which forces site visitors to do a lot of scrolling in order to see what’s available. See this page for an example of what I mean: http://www.cpr-twincities.com/community/combo I tried simply creating a two-column format within my theme (Dejavu), but that just produced narrower boxes, not two boxes per row, as I had before. Do you have any simple CSS code to plug into My Custom CSS? |
Hi John, The code sample in this article can be adapted to work with your theme: http://csswizardry.com/2010/02/mutiple-column-lists-using-one-ul/ |
|
|
I added:
Then I added:
Although it added pale gray lines under all hyperlinks (which I sort of like), I don’t see any change in the way my offering lay out. |
Hi John, You’ll need to adapt the code, not copy the demo example wholesale. If you require the services of a developer to help you accomplish this, please see our list of recommended developers: |
|
|
Sorry, I misinterpreted the instructions. I thought it was just going to be a simple script to make it into two flowing columns. Which part of the script added the pale gray lines? I’d like to delete all of the CSS code except for that. They’re in the top nav menu, the widgets in the right sidebar and the footer, and they make those sections stand out better. |
The border-top and border-bottom styles will add lines. |
|
|
Can you be more specific? If I can isolate the lines to just the sidebar, that would be wonderful. |
|
The code ul{ width:760px; margin-bottom:20px; overflow:hidden; border-top:1px solid #ccc; } li{ line-height:1.5em; border-bottom:1px solid #ccc; float:left; display:inline; } contains border-top and border-bottom rules. With that code those borders will be applied to every UL and LI tag on your site as they are none specific. You would need to check your themes sidebar styles for the correct ID’s or classes if you wanted to apply them just to the sidebar. As Josh mentioned, if you require the services of a developer to help you accomplish this, please see our list of recommended developers: |
|
I plugged that into My Custom CSS and got this warning: “Are you sure you want to do that? Try again.” Then I tried just this part and got pretty much what I was looking for: li{ As you suggested, I think I’ll check with my theme developer, as it seems to be more up their alley anyway. Thank you, Josh and Dean! |
The support post ‘Two-Column Event Listing Format’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.