hmtl issue

Permalink
I am having trouble centering my hmtl on my website is there another way too center hmtl boxes on concrete 5??

 
buildingsomethingonline replied on at Permalink Reply
buildingsomethingonline
Hi - I am not sure if I understand "html boxes" do you mean divs?

If so to center a div, use margin in your CSS, for example if I wanted to create a box and center it on the screen my html would look like:

<div id="my_box_to_center"></div>


and my CSS would like:

#my_box_to_center {
   position: relative;
   margin-left: auto;
   margin-right: auto;
   width: 900px;
}


if you are just trying to center the contents of a specific tag for example a p, do something like:

<p align="center">Content</p>


When you click the center button while editing content in Concrete, Tinymce makes code similar to the above.
getthemwallace replied on at Permalink Reply
so i would have too use css codes too centered it yes...
buildingsomethingonline replied on at Permalink Reply
buildingsomethingonline
If it is a div...yes
You can do this through your themes's main.css file or the "Design" function when you click on a block.

Hope this helps.
Chris