[SOLVED] the Main Content div of my template breaks when I type a long text

This is a discussion on "[SOLVED] the Main Content div of my template breaks when I type a long text" within the Web Page Design section. This forum, and the thread "[SOLVED] the Main Content div of my template breaks when I type a long text are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 9th, 2007, 10:25
Junior Member
Join Date: Nov 2007
Location: london
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] the Main Content div of my template breaks when I type a long text

I am having problems with my Main Content, it breaks my template that I have built when I type a long text and
doesn't stay within the main content but breaks into the right Content bar. Also when I type anything in the
Main Content or the Right content I want both the content div to expand to stay in line and that doesn't happen.

Here is the layout of my Html div

HTML: Select all
<div id="wrapper">
    <div id="Content">
        <div id="Logo">Logo Goes here</div>
        <div id="Header">Header goes</div>
    </div>
    <div id="NavigationContent">
        <div id="Navigation">Navigation Goes here</div>
        <div id="SearchBar">Search Goes here</div>
    </div>
    <div id="ContentWrapper">
        <div id="MainContent">Main Content Goes HERE</div>
        <div id="RightContent">Right Content GOes HERE</div>
    </div>
    <div id="Footer">Footer Goes Here</div>
</div>
here is the code for my css for the divs: My main #Wrapper is 900 pixel.

HTML: Select all
body {
    background-color: #FFFFFF;
}
#wrapper {
    width: 900px;
    margin-right: auto;
    margin-left: auto;
}
#Logo {
    background-color: #EEF1ED;
    height: 80px;
    width: 300px;
    float: left;
    margin: 0px;
    padding: 0px;
}
#Header {
    float: right;
    width: 600px;
    height: 80px;
    background-color: #CCCCCC;
    margin: 0px;
    padding: 0px;
}
#Content {
    width: 100%;
    margin: 0px;
    padding: 0px;
}
#NavigationContent {
    width: 100%;
}
#Navigation {
    height: 40px;
    width: 100%;
    background-color: #ECE9D8;
    margin: 0px;
    padding: 0px;
}
#SearchBar {
    background-color: #FFECF5;
    height: 40px;
    width: 100%;
}
#ContentWrapper {
    width: 100%;
    overflow: visible;
}
#MainContent {
    background-color: #F2F9F9;
    width: 600px;
    padding: 20px;
    float: left;
    text-align: justify;
    height: auto;
}
#RightContent {
    float: right;
    width: 220px;
    padding: 20px;
    background-color: #F1EBEE;
}
#Footer {
    background-color: #F7F4F4;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-top: 20px;
    float: left;
    width: 900px;
}
Thanks

Last edited by kee2ka4; Nov 9th, 2007 at 10:29.
Reply With Quote

  #2 (permalink)  
Old Nov 9th, 2007, 10:59
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: the Main Content div of my template breaks when I type a long text

See if adding overflow: hidden;
to the maincontent div helps keep it from breaking.

In order to keep the two columns even no matter what amount of content is placed inside, you will need to use the faux column technique. Here is a tutorial on it.
Reply With Quote
  #3 (permalink)  
Old Nov 9th, 2007, 11:26
Junior Member
Join Date: Nov 2007
Location: london
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: the Main Content div of my template breaks when I type a long text

aah thanks.. yea it works fine.. overflow hidden has done the job. Thank much appreciated.. i will go through the tutorial..

Ket
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE issues with main content Table (using .dwt), get distorted... jswa Web Page Design 2 May 21st, 2008 10:46
Content Mime Type for .master Corey Bryant ASP.NET Forum 2 Dec 5th, 2007 19:28
[SOLVED] 4EGTv.net Main site, still need help. TheSealPortalTeam Website Planning 16 Nov 28th, 2007 11:45
Using type 'Text' everywhere, wrong? @lun Databases 1 Aug 8th, 2007 18:46
display folder contents + specific text for a particular file type magnum Classic ASP 1 Aug 17th, 2006 13:02


All times are GMT. The time now is 21:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43