• 0
Sign in to follow this  
Followers 0

Bootstrap classes


Question

Posted · Report post

I want to align the text to center and used class 

 

 

<p class="text-left">Left aligned text.</p>
<p class="text-center">Center aligned text.</p>
<p class="text-right">Right aligned text.</p>
<p class="text-justify">Justified text.</p>

from here

 

http://getbootstrap.com/css/#type-abbreviations

 

 

but this does not work and class="center" works which version of botstrap should I use then?

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

Hi,

 

What you're looking at there is version 3 of Bootstrap, both PageLines Framework and DMS use a heavily customized version of Bootstrap 2. So some of the things you see on the Bootstrap 3 docs won't be available in DMS unfortunately.

 

You can see all available utility classes here - http://docs.pagelines.com/tutorials/html-css-utilities

 

If you want to use those classes from Bootstrap 3, you can simply copy the CSS and add to your custom CSS:

 

.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-justify {
text-align: justify;
}

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

OK Thanks

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

No problem.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0