Post by tjsystems » Fri Oct 31, 2014 10:49 pm

Hi all,
Can someone help me with the alignment of the UL?

In a product description i'm using a list. I want to align this list to the left, i cannot find it.... help!
Also played with placing a 'pull-left' in th tpl file... no luck.

Thanks,
Tim

PS; Default template in OC2

Live with 2.2.0.0 fully SSL.


Active Member

Posts

Joined
Sun Aug 26, 2012 5:39 pm
Location - NL, Amsterdam

Post by uksitebuilder » Sat Nov 01, 2014 12:50 am

Not 100% sure what you mean. I just tested it and the list aligns to the left by default (without any classes etc)

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by tjsystems » Sat Nov 01, 2014 1:08 am

sorry if i was not clear.

there is a left-maring... i dont want that!

from the demo: http://demo.opencart.com/index.php?rout ... duct_id=42

Attachments

left-margin.png

left-margin.png (9.28 KiB) Viewed 1431 times


Live with 2.2.0.0 fully SSL.


Active Member

Posts

Joined
Sun Aug 26, 2012 5:39 pm
Location - NL, Amsterdam

Post by uksitebuilder » Sat Nov 01, 2014 1:11 am

Add class="list-unstyled" to your <ul>

i.e

Code: Select all

<ul class="list-unstyled">
  <li>something here</li>
  <li>something here</li>
  <li>something here</li>
  <li>something here</li>
  <li>something here</li>
</ul>
see: http://www.tutorialrepublic.com/twitter ... -lists.php for more examples of bootstrap lists

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by tjsystems » Sat Nov 01, 2014 6:08 pm

thanks for that.

I need to find something else, i cannot tell customer to add the style manual for every product that has a list in the description.

Live with 2.2.0.0 fully SSL.


Active Member

Posts

Joined
Sun Aug 26, 2012 5:39 pm
Location - NL, Amsterdam

Post by uksitebuilder » Sat Nov 01, 2014 6:50 pm

Then you can create your own style in the stylesheet.css file

As the decription in inside a div with id of tab-description

Set your own css rule like so:

#tab-description ul{
.....styling
}

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 8 guests