Auto Resizable Divs with CSS-VBForums
Results 1 to 5 of 5

Thread: Auto Resizable Divs with CSS

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    475

    Auto Resizable Divs with CSS

    I use skybluecanvas as my cms, the code below is in my template file, the sidebar div is set at 30% and the main div at 70%, it looks fine now on my pc but if i use a smaller resolution or resize my browser window my sidebar overlaps the main div.

    Code:
    <div id="content-wrap">
         <div id="main" >
             <!--#plugin:fragment(page,view)--> 
         </div>
         <div id="sidebar">
             <!--#plugin:fragment(ABOUT-LINKS)-->
         </div>
    </div>
    My main div resizes automatically, how can i make my sidebar and whatever content i have within it do the same. As its a menu within the sidebar any code that can automatically resize my menu text as well would be useful.

    My main menu bar across the top does the same, rather than resizing the text to a smaller font, it moves the menu text underneath.

    if you look here, select all then resize your window and you'll see what i mean,

    Thanks Chris1990
    Last edited by chris1990; Nov 9th, 2011 at 11:58 PM.
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  2. #2
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,457

    Re: Auto Resizable Divs with CSS

    What css code are you using?
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    475

    Re: Auto Resizable Divs with CSS

    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  4. #4
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,457

    Re: Auto Resizable Divs with CSS

    Have you solved the problem? I test the above site and it doesn't appear overlap anymore whereas before Corporate Taxi Services, Contact Us and News were wrapped underneath and got hidden by the middle divs.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    475

    Re: Auto Resizable Divs with CSS

    No, I haven't changed anything on the site, i'm using my local server.
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.