Center "enhanceable_content tabs"

Jump to solution
john_torrent
Community Member

I'm attempting to center "enhanceable_content tabs".  The end goal is to create a 'lightbox' effect using the tabs as thumbnails and text as the large image.  So far, so good.  I just need a method to center the tabs.

<div class="enhanceable_content tabs">
<div id="fragment-1">
<p>
<LARGE 1 IMAGE HERE>
</p>
</div>
<div id="fragment-2">
<p>
<LARGE 2 IMAGE HERE>
</p>
</div>
<div id="fragment-3">
<p>
<LARGE 3 IMAGE HERE>
</p>
</div>
<ul>
<li style="background-color: #c0f7f7;">
<a href="#fragment-1">
<SMALL IMAGE 1>
</a>
</li>
<li style="background-color: #c0f7f7;">
<a href="#fragment-2">
<SMALL IMAGE 2>
</a>
</li>
<li style="background-color: #c0f7f7;">
<a href="#fragment-3">
<SMALL IMAGE 3>
</a>
</li>
</ul>
</div>

Labels (1)
0 Likes
1 Solution
kmeeusen
Community Champion

Hi @john_torrent 

The following code snippet should help, check out the bold code ................

<body>
    <div style="width:800px; margin:0 auto;">
        centered content
    </div>
</body>


I hope this helps,

Kelley

 

View solution in original post