Jump to content

Recommended Posts

Posted

Hi

My sidebar on brilliance skin is being showed under the mainarea. Please kindly help.

Thanks

Have you tried changing the width of the main area? Also check that the floats are correct. Without seeing the code, or the site, it's hard to say exactly what the problem is.

Posted

still the same.

What is the overall width of the page? You're asking for help but not providing much to go on here. A link to the page would be helpful at this point.

  • Like 1
Posted

ok here is the screenshot

screenshot.jpg

The screenshot is useless. It doesn't tell us what's causing the problem. It's the HTML and CSS that is used to render the page where the problem lies. Without seeing exactly how you have laid the page out how can you expect anyone to be able to point out what's wrong?? :rolleyes:

Posted

And the HTML?

EDIT: Have you listed all the available CSS above? There is no page styling shown so I still don't know what the overall width of the page is. If you're not prepared to give the info, then no-one is going to be able to help you.

Posted

Ok now we have something to work with. Try increasing the wrapper width until the sidebar is positioned correctly. I would try 960px first. You can work out the required widths by calculating the sum total widths of all the containers, plus the left and right margins on each, this would allow you to work out a layout that would fit into the overall page width:

http://www.w3schools.com/html/html_layout.asp

http://www.htmldog.com/guides/cssadvanced/layout/

http://www.maxdesign.com.au/articles/css-layouts/

Posted

Ok now we have something to work with. Try increasing the wrapper width until the sidebar is positioned correctly. I would try 960px first. You can work out the required widths by calculating the sum total widths of all the containers, plus the left and right margins on each, this would allow you to work out a layout that would fit into the overall page width:

http://www.w3schools.com/html/html_layout.asp

http://www.htmldog.com/guides/cssadvanced/layout/

http://www.maxdesign.com.au/articles/css-layouts/

tried 960px and 1000px no use.

Posted

You've not closed two divs in the HTML and that's why the sidebar is in the incorrect position. For future reference, if you are having styling/layout issues, having the CSS and HTML displayed will get you help much quicker than it has this time. :angry:

       </p>
<br />

</div> <!-- ADD THESE TWO DIV CLOSE TAGS HERE -->
</div>

<!-- Sidearea Ends -->

       <!-- Container Ends -->
       <!-- Footer Starts -->
               <div id="footer">
                       <p class="floatleft">copyright © 2011 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?> | <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a> | Template redesigned/reedited by Airblue Virtual</a></p>
                       <p class="floatright"><a href="#">Utility</a>  |  <a href="#">Links</a>  |  <a href="#top">Back to Top</a></p>
               </div>
       <!-- Footer Ends -->
       </div>
<!-- Wrapper Ends -->
</body>
</html>

  • Like 1
Posted

Glad we got there in the end!

You also need to clear the floats on the sidebar and mainarea, or else the footer will place itself incorrectly if there is little content. You can do so by placing the following code just before the footer div beginning:

<div style="clear:both;"></div>

I set a CSS rule for this purpose:

CSS:

.clearfloats {clear:both}

The I can reuse this in the html like so:

<div class="clearfloats"></div>

Posted

The tables are the cause. They are set too wide. Reduce their size and it should fit nicely.

No they are not the problem, they are set to 100%, and will use 100% of the width of the container they are held in, that being the mainarea div, which is set to 600px.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...