Support

Home Forums Event Espresso Premium Mis-aligned Items

Mis-aligned Items

Posted: February 3, 2016 at 12:59 pm


Greg Dietrich

February 3, 2016 at 12:59 pm

This seems to be occuring on all of our events, but one in particular is https://eventsignup.org/event-registration/?ee=59.

All of this: http://d.pr/i/13U4a, seem misaligned. How can I fix this?


Lorenzo Orlando Caum

  • Support Staff

February 3, 2016 at 2:40 pm

Hi Greg,

You can inspect any element on a page using a free tool like Chrome Developer Tools (available with Google Chrome) or Firebug (available as a web browser extension).

This will show you the CSS that is handling the styling including the file and line number. Then you can add new styling to your website and there are a couple ways to add new CSS to a site. If your theme has a Custom CSS area built-in, then you can add it there. Otherwise, you could use a free plugin that adds an additional stylesheet to your WordPress site such as Simple Custom CSS or Reaktiv CSS Builder.

Try this CSS:

.span_event_time_label, .span_event_time_value { margin-left: 0 !important;}

You can then go back to your site and refresh the page to see the new changes.


Lorenzo


Greg Dietrich

February 3, 2016 at 6:50 pm

Thanks Lorenzo, this is helpful. I’m generally familiar with the inspector and CSS, I just couldn’t get this for some reason. Now, your solution works for most of this, however, my date section is still flung off to the right (http://d.pr/i/1bkIX). How can we get that back under the times?


Josh

  • Support Staff

February 3, 2016 at 7:06 pm

Hi Greg,

The root cause of all of this misalignment is the bootstrap.css stylesheet that’s setting everything element with “span” in its class name to float right. Here’s what the inspector shows:

https://www.evernote.com/shard/s4/sh/9a18e70a-1598-4c1b-82d7-2de811fa69b5/84317ca0e5c25e8923b229d82b47f7d9

So when you use the bootstrap.css styles, you can keep an eye out for elements that get floated off to the right. When you find more, you work in more fixes like the one that Lorenzo showed you. In this case it’s the .span_event_date_label class that could also use a similar fix, but also in this case you’ll also throw in float: none;


Greg Dietrich

February 3, 2016 at 7:14 pm

Thanks Josh, again, helpful.

So I added:

.span_event_date_label {margin-left:0 !important;float:none !important;}

But it doesn’t fix it…I messed around with a few options here, but not coming up with anything…what do you think?


Josh

  • Support Staff

February 3, 2016 at 8:19 pm

Hi Greg,

You’ll need to also add .span_event_date_value to your list, and any other elements you can find along the way that start with “span”. There may be more on this page and others, so you’ll need to keep an eye out for more.


Greg Dietrich

February 4, 2016 at 10:53 am

OK, so I have added that into my code, so it now looks like:

.span_event_date_label, .span_event_date_value {
margin-left:0 !important;float:none !important;
}

It still isn’t aligning on the left side.


Josh

  • Support Staff

February 4, 2016 at 11:42 am

And it won’t because you still have other span elements being floated. You can do something like this instead to cancel the floats for all of them:

[class*="span_event"]{
float:none;
}


Greg Dietrich

February 4, 2016 at 11:51 am

Thanks Josh, that does it for me…

The support post ‘Mis-aligned Items’ 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.

Event Espresso