Reconcile the heights of two Div tags?

Hi all

Good then, I have two boxes with CSS styles.  One is my nav side, floated on the left, clear: both (width: 213) and placed under a model div locked (with a height and width), floated to the left.  The other is the content div (width: 696), floating to the right.  The content div increases as text is added and has no fixed height.

The problem is I want the nav div height to match the current height of the content div.  Because they do not have the same part of the page, I have trouble reconciling the heights to match evenly.  Ideally, I would like to the side nav div to grow as does the content div.

Any suggestions?

The technique of fake columns can be difficult for me because my site is not positioned absolutely.

Fake columns do not need to use APDivs.  All you need is a width declared on your div #container and a BG image that is the same width.

EXAMPLE:

http://ALT-Web.com/templates/2-column-fixed-width-template.shtml

BG Image here

http://ALT-Web.com/images/GRN-BG.jpg

Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
www.Alt-Web.com/
www.Twitter.com/ALTWEB
www.Alt-Web.blogspot.com

Tags: Dreamweaver

Similar Questions

  • Im doing a sensitive web page and the height of my divs match, even if I did the math! No idea why?

    Im doing a sensitive web page and the height of my divs match, even if I did the math! No idea why? I have a rectangle of 100% with screen (1260px) with a square that represents 49% of the rectangle, with 2% margin on the right. Then the other half there is room who do the same size of the largest square with bottom margin and right, as appropriate. Yet looks like this in the browser! No idea why they do not align?Screen Shot 2014-10-31 at 14.48.00.png

    Don't worry thereon, as soon as I posted I worked out how to do it!... Typical! I had somehow reduced the padding inside the small images! Thanks nevertheless!

  • What is the problem with my div tag / site don't center...

    Hello

    I am re-design of a site, and I can't seem to focus.  I created a div and id tag it 'wrapper' and created a css rule.  I'm sure it's a simple mistake, but I can't understand it...

    Here are the CSS rules...

    @charset "UTF-8";

    / * CSS document * /.

    div, h1, h2, h3, h4, h5, h6, p, pre, address, blockquote, span, ul, ol, li, dl, dd, dt, ing {}

    margin: 0px;

    padding: 0px;

    }

    {#wrapper}

    margin: 0 auto;

    background-color: #9B9E6B;

    }

    UL {}

    list-style: none;

    }

    table #content1 {}

    background-color: #00 C;

    background-image: url(_images/content_bgrnd.png);

    background-repeat: no-repeat;

    do-family: "Arial Black", Gadget, without serif.

    font size: 20px;

    text-align: center;

    padding: 8px;

    }

    Here is the code for the site...

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > 104 Kiahuna < /title >

    < script type = "text/javascript" >

    <!--

    function MM_preloadImages() {//v3.0

    var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

    var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    function MM_swapImgRestore() //v3.0 {}

    var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;

    }

    function MM_findObj (n, d) {//v4.01

    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

    If (! x & & d.getElementById) x = d.getElementById (n); Return x;

    }

    function MM_swapImage() {//v3.0

    var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).

    If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}

    }

    ->

    < /script >

    < link href = "104.css" rel = "stylesheet" type = "text/css" / > "

    < / head >

    < body onload = "MM_preloadImages ('_images/buttinside1.jpg','_images/buttproperty1.jpg','_images/b uttactivities1.jpg','_images/buttdining1.jpg','_images/buttcontacts1.jpg','_images/home_lg 1.png','_images/home_lg2.png','_images/home_lg3.png','_images/home_lg4.png','_images/home_ lg5.png','_images/home_lg6.png','_images/home_lg7.png','_images/home_lg8.png')" >

    < div id = 'wrapper' >

    <! - header - >

    < table id = "header" >

    < div class = "header" > < img src = "_images/newLOGO.jpg" alt = "Kiahuna 104" width = "1000" / > ""

    < / div >

    <! - navigation table - >

    < table width = "1000" bgcolor = "000" >

    < b >

    < td width = "40" > < table >

    "< td width ="150"> < a href =" inside.htm"> < img src =" _images/butthome1.jpg ' alt = 'home1' name = 'home1' id = 'home1' / > < /a > < table >

    "" < td width = "150" > < img src = "_images/buttinside2.jpg" alt = "inside2" name = "inside2" id = "inside2" onmouseover ="MM_swapImage ('inside2'", ' _images/buttinside1.jpg', 1) ' MM_swapImgRestore "/ > < /a > < table >

    "" < td width = "150" > < a href = "property.htm" > < img src = "_images/buttproperty2.jpg" alt = "property2" name = 'property2' id = 'property2' onmouseover ="MM_swapImage ('Property2'", ' _images/buttproperty1.jpg', 1) ' MM_swapImgRestore "/ > < /a > < table >

    < td width = "150" > < a href = "activities.htm" > < img src = _images/buttactivities2.jpg"" alt = "nature2" name = "2" id = "2" onmouseover = "MM_swapImage ('2'", ' _images/buttactivities1.jpg', 1) ' MM_swapImgRestore"/ > < /a > < table >" "

    < td width = "150" > < a href = "dining.htm" > < img src = _images/buttdining2.jpg"" alt = "dining2" name = 'dining2' id = 'dining2' onmouseover = "MM_swapImage ('dining2',", ' _images/buttdining1.jpg', 1) ' MM_swapImgRestore"/ > < /a > < table >" "

    "< td width ="150"> < a href =" contact.htm"> < img src =" _images/buttcontacts2.jpg "alt ="contact2"name ="contact2"id ="contact2"onmouseover =" MM_swapImage ('contact2' ", ' _images/buttcontacts1.jpg', 1) ' MM_swapImgRestore" / > < /a > < table > "

    < /tr >

    < /table >

    <! - beginning of the height of the content1 371 = table - >

    < table = "content1" table width id = "1000" height = "371" >

    < b >

    < td width = "34" > < table >

    < td width = "897" > < p > blah blah blah. < /p >

    < class p 'center2' = > NEW: IN - CONDO WASHER & DRYER - COMPLETELY NEW FURNITURE < /p > < table >

    < td width = "53" > < table >

    < /tr >

    < /table >

    < / body >

    < / html >


    Remove the width of the Div in HTML and replace your CSS #wrapper with:

    {#wrapper}

    background-color: #000000;

    margin: 0 auto;

    Width: 1000px;

    }

    You had a comma in your CSS margin.

    Also:

    {body

    background-color: #000000;

    margin: 0;

    }

    will make the whole page black and remove your current white border around the outside of the page.

  • Setting a min-height on a div tag

    On some of my pages, there is not a lot so the content div is not circulate beyond the sidebar div. is there such a thing as the definition of a min-height on a div or do I just to assign a fixed height for the div on these pages? Recommendations?

    http://www.webassistantsllc.com/clients/enviromaster

    Thank you

    Lynne

    Hello

    You can use the min-height css property.

    See http://www.w3schools.com/css/pr_dim_min-height.asp.

    PZ

  • Why I'm not able to see the fluid Grid Layout Div tag

    Why can't I see no menu fluid Grid Layout Div in the Layout to insert tags

    DW CC changed signs.  If you work in FGLayouts, DW intuitively inserts the correct Div for you.

    Nancy O.

  • The use of JavaScript to extend the height of a DIV at the height of a document or a page.

    Hi all

    How to use JavaScript to dynamically resize a DIV on a page, so that the div extends vertically to the size of the page or document.

    I did experiences throughout the evening with different methods, some do not work yet.

    Thank you all!

    WE

    This question is asked several times a week.

    SAME HEIGHT CSS COLUMNS

    Option 1. Start the project with equal height CSS Layout
         http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-CSS-no-hacks

    Option 2. Use the Faux column method (vertical tiled background image)
         http://forums.Adobe.com/message/2653416#2653416

    Option 3. Use of JavaScript
         http://www.Projectseven.com/Tutorials/CSS/pvii_columns/index.htm

    Each solution has advantages and disadvantages.  Use the one that best meets your needs.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • I need help with the DIV tags :)

    Hello.

    I'm currently building a website for a server CoD: WaW Nazi Zombies I'm currently getting. The purpose of this one is just for me and my friends to play nazi zombies and test different mods of it. I'm putting the layout for the Web site using styles and DIV tags I want to have two div tags on the same line as the other. Some solutions I've seen include float, but when I try that it does not work so I turned on the Adobe Forums. Here is my code:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    <!-TemplateBeginEditable name = "doctitle"-->
    jCodZombies < title > - < /title > model
    <! - TemplateEndEditable - >
    <!-TemplateBeginEditable name = "head"->
    <! - TemplateEndEditable - >
    < style type = "text/css" >
    <!--
    . Header {}
    height: 310px;
    Width: 1280px;
    background-image: url (.. / jCodZombies/images/slices_01.gif);
    }
    . NAV {}
    height: 461px;
    Width: 481px;
    }
    . Happy {}
    height: 461px;
    Width: 799px;
    background-image: url (.. / jCodZombies/images/slices_03.gif);
    }
    .footer {}
    height: 253px;
    Width: 1280px;
    background-image: url (.. / jCodZombies/images/slices_04.gif);
    }
    ->
    < / style >
    "" < script src = "... / Scripts/swfobject_modified.js" type = "text/javascript" > < / script >
    < / head >
    < body >
    "" < div class = "header" > < img src = "... / jCodZombies/jCodZombies.gif" width = "1280" height = "300" / > < / div >
    < div class = "nav" >
    < object id = 'FlashID' classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "481" height = "461" > "
    "" < param name = "movie" value = "... / jCodZombies/nav.swf" / >
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->
    "" < param name = "expressinstall" value = "... / Scripts/expressInstall.swf" / >
    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->
    <!-[if! IE] >->
    "" < object type = "application/x-shockwave-flash" data = "... / jCodZombies/nav.swf" width = "481" height = "461" >
    <!-<! [endif]-->
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    "" < param name = "expressinstall" value = "... / Scripts/expressInstall.swf" / >
    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->
    < div >
    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >
    " < p > < a href =" http://www.Adobe.com/go/getflashplayer_fr "> < img src = ' http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif "alt = 'Get Adobe Flash player' width = '112' height ="33"/ > < /a > < /p > "
    < / div >
    <!-[if! IE] >->
    < / object >
    <!-<! [endif]-->
    < / object >
    < / div >
    < div class = "content" > < / div >
    < div class = "footer" > < / div >
    < script type = "text/javascript" >
    <!--
    swfobject.registerObject ("FlashID");
    ->
    < /script >
    < / body >
    < / html >

    Also here is a link to my site that this code is for: http://www.jcodzombies.TK

    It should work. In addition, he is a model for two pages on this Web site. He is not too complicated and have done it before, but can't get out so I would like some advice from you guys.

    Thank you and I hope to see some answers soon.

    If you have Dreamweaver, why don't you just try one of their file > new... home pages? Maybe try 2 columns with header and footer? Or fair value each of your divs a different background color and try to play with things. You should be able to simply float your div 'nav' on the left. It is usually a good idea to create a div 'container' and put all your other div inside. Then the div 'container' your maximum width and value margin: 0 auto;

  • Disorder by selecting the Div tags

    Hello

    Im trying to create a website portfolio for me but I'm having trouble with the selection of some div tags, I added to my page.

    As you can see here the top right divtag is selected/clicked on illustrated by give it a blue box around it. It allows me to add a rollover image to which is what I try to do with home' 'info' and 'contact' buttons shown above right. However when I click on or around the div tags that hold these buttons I can't "select" them so that the blue box appears around the edge and therefore impossible to add the rollover image.

    This is the encoding of the page, if it helps (I) normally work in the design window, I have not been taught in the coding

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > Untitled Document < /title >

    < style type = "text/css" >

    {#wrapper}

    float: none;

    Width: 1500px;

    margin: auto;

    }

    {#p1}

    float: left;

    height: 350px;

    Width: 490px;

    margin left: 15px;

    top of the margin: 15px;

    background-image: url(images/testp1.jpg);

    }

    {#p4}

    float: left;

    height: 350px;

    Width: 490px;

    top of the margin: 15px;

    margin left: 15px;

    background-image: url(images/testp2.jpg);

    }

    {#p5}

    Clear: none;

    float: left;

    height: 350px;

    Width: 490px;

    top of the margin: 15px;

    margin left: 15px;

    background-image: url(images/testp3.jpg);

    }

    {#p6}

    float: left;

    height: 350px;

    Width: 490px;

    top of the margin: 15px;

    background-image: url(images/testp1.jpg);

    }

    {#p2}

    background-color: #333;

    float: left;

    height: 350px;

    Width: 490px;

    top of the margin: 15px;

    background-image: url(images/testp2.jpg);

    }

    {#p3}

    background-color: #999;

    float: left;

    height: 350px;

    Width: 490px;

    right margin: 15px;

    top of the margin: 15px;

    background-image: url(images/testp3.jpg);

    }

    {#p7}

    float: left;

    height: 350px;

    Width: 490px;

    top of the margin: 15px;

    margin left: 15px;

    background-image: url(images/testp3.jpg);

    }

    {#p8}

    float: left;

    height: 350px;

    Width: 490px;

    top of the margin: 15px;

    margin left: 15px;

    background-image: url(images/testp1.jpg);

    }

    {#p9}

    float: left;

    height: 350px;

    Width: 490px;

    top of the margin: 15px;

    background-image: url (images/Logo1 - Tile.jpg);

    }

    {#home-btn}

    background-color: #999;

    float: left;

    height: 30px;

    Width: 30px;

    margin-top:-715px;

    margin left: 15px;

    background-image: url(images/home.jpg);

    }

    {#contact-btn}

    float: left;

    height: 30px;

    Width: 30px;

    margin-top:-625px;

    margin left: 15px;

    background-color: #FF6;

    background-image: url(images/contact.jpg);

    }

    {body

    left margin: 0px;

    margin-top: 0px;

    margin-right: 0px;

    margin-bottom: 0px;

    }

    {#info-btn}

    background-color: #09F;

    float: left;

    height: 30px;

    Width: 30px;

    margin left: 15px;

    margin-top:-670px;

    background-image: url(images/info.jpg);

    }

    < / style >

    < / head >

    < body >

    < div id = 'wrapper' >

    < div id = "p9" > < / div >

    < div id = "p8" > < / div >

    < div id = "p7" > < / div >

    < div id = 'p6' > < / div >

    < div id = "p5" > < / div >

    < div id = "p4" > < / div >

    < div id = 'p3' > < / div >

    < div id = "p2" > < / div >

    < div id = "p1" > < / div >

    < / div >

    < div id = "contact-btn" > < / div >

    < div id = "info-btn" > < / div >

    < div id = "Home-btn" > < / div >

    < / body >

    < / html >

    Any ideas?

    Cheers, Ryan

    I normally work in the design window that I've not been taught in the coding

    You will learn about code regardless if you make the effort. Start with these links:

    http://w3schools.com/

    http://www.csstutorial.NET/

    DW assumes that you have knowledge of HTML & CSS code.

    If you cannot or will not work with the code, you use the wrong tool.

    For the non-codeurs, Adobe offers 2 other options: Adobe Muse & portfolio

    Nancy O.

  • How to customize the height between the two options of the Radio button control component?

    Hi all

    Please help me.

    I want to reduce the height of two radio button options. I change the Radio band height & width but between two option has not changed.

    I try this code below in qml

    RadioGroup {}
    ID: radiogroup
    layoutProperties: {AbsoluteLayoutProperties}
    positionY: 375.0
    positionX: 600,0
    }
    preferredWidth: 100.0
    preferredHeight: 440,0
    maxHeight: 440,0
    minHeight: 440,0
    Option {id: stc; text: ' '; selected: true}
    Option {id: mobily; text: ""}
    Option {id: zain; text: ""}
    Option {id: blackberry; text: ""}
    }

    Please help me

    I solved this problem using scale Propertie of the RadioGroup.

    Thanks for your comments.

  • Transparent background of the div tag

    Hello, I use a bit CS5 and I wonder if there is a convenient way in the program to change the opacity of a div tag, back on the ground without having to deal with a lot of code.

    I prefer using a semi-transparent PNG image.

    See example of CSS opacity below:

    http://ALT-Web.com/sample.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Placement of div tag error

    Hi-

    I placed the text in a div tag that is encapsulated within another div (Figure 1), but I can't seem to identify the appropriate location.  I tried to solve the problem assuming that the placement of the div is incorrect.  However, I cannot place a div within the area I want (red arrow indicates the proper placement), therefore, the text appears at the bottom of here where it should, under this seemingly div. foreign to one another any help to solve this is greatly appreciated. Thank you!

    Two images: Web site in the browser (left) and in Design view of Dreamweaver (right).

    DivTagIssue.JPGDivTagIssue2.JPG

    Try 2 col fixed, left-sidebar, header & footer.

    Nancy O.

  • That extends the height of the container to even as a "parent" container

    Hello

    I have a div container, which is the housing of the left and right divs for layout of the two standard columns. My right div is the text and my left for the menu. The height of this div I would always be at the height of the div it sits-extend into the background, where I have a div for the footer. I tried to adjust the height to 100%, but it did not work. I find myself with a block of color in the left column drops only as low as will the content (text).

    All very simply, I'm sure. Any advice?

    Thank you very much

    > All very simply, I'm sure

    N ° actually, impossible. Google "false column" However, so it looks like
    as you have achieved that goal...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "bendrissa" wrote in message
    News:fc7d25$Q8$1@forums. Macromedia.com...
    > Hi
    >
    > I have a container div, which is housing left and right divs for a Stallion
    > two
    > column layout. My right div is the text and my left for the menu.
    > I would like to
    > as the height of this div to always be at the height of the div
    > she
    > meeting in French - extend into the background, where I have a div for the
    > footer. I tried to adjust the height to 100%, but it did not work. I'm left
    > with
    > a block of color in the left column that only drops as low as the
    > content
    > will (text).
    >
    > All very simply, I'm sure. Any advice?
    >
    > Thank you very much
    >

  • Tag DIV, when the height is set to 'AUTO' is not automatic?

    So basically the main DIV tag (#wrapper) is a grey box, in that I want everything on the page to enter.

    When I put his height manually, for example 1020px, it works fine.

    But when I put it on 'auto' it has a height of about 10px or so, starting at the top.

    Can someone tell me why this is?

    Here is my code:

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 ">"

    < title > < /title >

    < style type = "text/css" >

    {body

    background-color: #262626;

    }

    {#wrapper}

    width: 1020px;

    margin-right: auto;

    left margin: auto;

    background-color: #333;

    padding-top: 10px;

    padding-right: 10px;

    padding-left: 10px;

    height: auto;

    }

    {#logoFrame}

    float: left;

    width: 220px;

    border-bottom-width: 1px;

    border-bottom-style: solid;

    border-bottom-color: #6B 8431;

    height: 360px;

    padding-bottom: 10px;

    }

    {#titleFrame}

    float: right;

    width: 800px;

    border-bottom-width: 1px;

    border-bottom-style: solid;

    border-bottom-color: #6B 8431;

    height: 360px;

    padding-bottom: 10px;

    }

    #logo {}

    float: left;

    height: 360px;

    width: 200px;

    }

    #title {}

    height: 360px;

    width: 780px;

    float: right;

    }

    {#titleTopFrame}

    float: right;

    height: 233.5px;

    width: 780px;

    border: 1px solid #6B 8431;

    }

    {#sidebarFrame}

    width: 220px;

    border-right-width: 1px;

    border-right-style: solid;

    border-right-color: #6B 8431;

    padding-top: 10px;

    float: left;

    height: auto;

    border-bottom-width: 1px;

    border-bottom-style: solid;

    border-bottom-color: #6B 8431;

    padding-bottom: 343px;

    }

    {#footerFrame}

    width: 1020px;

    float: left;

    margin-top:-10px;

    }

    {#contentFrame}

    float: right;

    width: 775px;

    padding-right: 10px;

    height: auto;

    border-bottom-width: 1px;

    border-bottom-style: solid;

    border-bottom-color: #6B 8431;

    padding-left: 14px;

    }

    {p}

    are-family: "Lucida Sans Unicode", "Lucida Grande", without serif.

    color: #D6D795;

    -tracking: 0.01em;

    text-align: justify;

    }

    {#pictureFrame}

    float: right;

    height: 383px;

    width: 289px;

    top of the margin: 23px;

    margin-bottom: 10px;

    margin-left: 10px;

    }

    #image {}

    height: 383px;

    width: auto;

    float: right;

    }

    H6 {}

    color: #797979;

    are-family: "Lucida Sans Unicode", "Lucida Grande", without serif.

    are-size: 11px;

    make-weight: lighter;

    text-transform: uppercase;

    text-align: center;

    }

    {#titleBottom}

    width: 780px;

    float: right;

    height: 110px;

    }

    < / style >

    < script src = "SpryAssets/SpryMenuBar.js" type = "text/javascript" > < / script > "

    < link href = "SpryAssets/SpryMenuBarVertical.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body >

    < div id = 'wrapper' >

    < div id = "logoFrame" > < img src = "Header/Logo.png" alt = "Logo" width = "335" height = "632" id = "logo" > < / div > "

    < div id = "titleFrame" >

    < div id = "titleTopFrame" > < img src = "Header/Title.png" alt = "Title" width = "1112" height = "500" id = "title" > < / div > < / div > "

    < div id = "sidebarFrame" >

    < ul id = "MenuBar1" class = "MenuBarVertical" >

    < li > < a href = "#" > home < /a > < /li >

    < li > < a href = "#" > on < /a > < /li >

    < li > < a href = "#" > subject Tim < /a > < /li >

    < li > < a href = "#" > Types of walls of retaining < /a > < /li >

    < li > < a href = "#" > Gallery < /a > < /li >

    < li > < a href = "#" class = "MenuBarItemSubmenu" > < /a > Reccomendations

    < ul >

    < li > < a href = "#" > block factory < /a > < /li >

    < li > < a href = "#" > civil engineers < /a > < /li >

    < li > < a href = "#" > geogrid factory < /a > < /li >

    < li > < a href = "#" > engineers geotechnical < /a > < /li >

    < li > < a href = "#" > wall installers < /a > < /li >

    < /ul >

    < /li >

    < li > < a href = "#" > stories < /a > < /li >

    < li > < a href = "#" > Contact < /a > < /li >

    < /ul >

    < / div >

    < div id = "contentFrame" >

    < div id = "pictureFrame" > < img src = ' Pages/3. On Tim/Tim Headshot.jpg' alt = 'Tim' width = "525" height = "700" id = "image" > < / div >

    paragraph < p > < /p >

    < / div >

    < div id = "footerFrame" >

    < h6 > < strong > to < > 2011 facilities by I wish I had a company name, Inc. < / h6 >

    < / div >

    < / div >

    < script type = "text/javascript" >

    var MenuBar1 = new Spry.Widget.MenuBar ("MenuBar1", {imgRight: SpryAssets/SpryMenuBarRightHover.gif"}" ");

    < /script >

    < / body >

    < / html >

    Sorry I know this is a bit long. I have put all the "#wrapper" - of the snippets in red.

    Can someone tell me why this is?

    Of course, it's because a) auto is the same as nothing.  This means that the default behavior for a block tag is to expand vertically to wrap its content.  The problem arises when / if some of the content are launched or positioned.  As floated and positioned elements are "withdrawn from normal traffic" page, acts of container as if they were not there yet and only reacts to the content not launched, ignoring the other two elements.  Given that you have floating content in the tank of #wrapper, this is what is happening.

    There are four ways to force a container to encapsulate floating elements:

    1. the float container

    2. Add an element of compensation immediately before closing the container

    3. apply a style to the container that forces him to become a new block formatting context.  These styles are things like -

    overflow: hidden. scroll | Auto

    Display: inline-block. Inline-table | table-cell. table-caption

    position: absolute. fixed

    4. use an adaptation of CSS clearfix

    The most common (but not without a few problems) to do this is to use overflow: hidden style.  Try changing your div wrapper to this and see what happens-

  • Responsive Design - Show and hide the div tags

    Hello

    I am building a website using sensitive design. I want a certain div tag to be read on a desktop and a tablet but then to disappear and a different div be made visible on the mobile device.

    I realized the above with the code below, but I found a problem. The problem I found is that the div is hidden here still an empty space remains there then it creates a large empty space. Anyway is to hide this great space?

    (mobile)

    {#tab-container}

    display: none;

    visibility: hidden;

    Clear: both;

    float: none;

    left margin: 0;

    Width: 96%;

    display: block;

    margin-right: auto;

    left margin: auto;

    padding-top: 10px;

    padding-bottom: 10px;

    text-align: center;

    border-top-width: 1px;

    border-bottom-width: 1px;

    border-top-style: solid;

    border-bottom-style: solid;

    border-bottom-color: #000;

    border-bottom-color: #000;

    }

    {#phone-tabs}

    display: block;

    visibility: visible;

    Clear: both;

    float: none;

    left margin: 0;

    Width: 96%;

    display: block;

    margin-right: auto;

    left margin: auto;

    padding-top: 10px;

    padding-bottom: 10px;

    text-align: center;

    border-top-width: 1px;

    border-bottom-width: 1px;

    border-top-style: solid;

    border-bottom-style: solid;

    border-bottom-color: #000;

    border-bottom-color: #000;

    line-height: 30px;

    }

    (Tablet)

    {#tab-container}

    display: block;

    visibility: visible;

    Clear: both;

    float: none;

    left margin: 0;

    Width: 96%;

    display: block;

    margin-right: auto;

    left margin: auto;

    padding-top: 10px;

    padding-bottom: 10px;

    text-align: center;

    border-top-width: 1px;

    border-bottom-width: 1px;

    border-top-style: solid;

    border-bottom-style: solid;

    border-bottom-color: #000;

    border-bottom-color: #000;

    }

    {#phone-tabs}

    display: none;

    visibility: hidden;

    Clear: both;

    float: none;

    left margin: 0;

    Width: 96%;

    display: block;

    margin-right: auto;

    left margin: auto;

    padding-top: 10px;

    padding-bottom: 10px;

    text-align: center;

    border-top-width: 1px;

    border-bottom-width: 1px;

    border-top-style: solid;

    border-bottom-style: solid;

    border-bottom-color: #000;

    border-bottom-color: #000;

    }

    (office)

    {#tab-container}

    display: block;

    visibility: visible;

    Clear: both;

    float: none;

    left margin: 0;

    Width: 70%;

    display: block;

    margin-right: auto;

    left margin: auto;

    padding-top: 10px;

    padding-bottom: 10px;

    text-align: center;

    border-top-width: 1px;

    border-bottom-width: 1px;

    border-top-style: solid;

    border-bottom-style: solid;

    border-bottom-color: #000;

    border-bottom-color: #000;

    }

    {#phone-tabs}

    display: none;

    visibility: hidden;

    Clear: both;

    float: none;

    left margin: 0;

    Width: 70%;

    display: block;

    margin-right: auto;

    left margin: auto;

    padding-top: 0px;

    padding-bottom: 0px;

    text-align: center;

    border-top-width: 0px;

    border-bottom-width: 0px;

    border-top-style: solid;

    border-bottom-style: solid;

    border-bottom-color: #000;

    border-bottom-color: #000;

    }

    Thanks for your help!

    Alex

    Try to delete the two lines, as shown below.

    Display: block overrides display: no because it is further down in the code.

    For this reason, visibility: hidden comes into play. This statement is exactly intended to hide the contents, while leaving the blank space.

    Edit: I think that really is all you need:

    {#tab-container}

    display: none;

    }

    (mobile)

    {#tab-container}

    display: none;

    visibility: hidden;

    Clear: both;

    float: none;

    left margin: 0;

    Width: 96%;

    display: block;

    margin-right: auto;

    left margin: auto;

    padding-top: 10px;

    padding-bottom: 10px;

    text-align: center;

    border-top-width: 1px;

    border-bottom-width: 1px;

    border-top-style: solid;

    border-bottom-style: solid;

    border-bottom-color: #000;

    border-bottom-color: #000;

  • spaces between the div tags

    I posted a few weeks on how to Center my site (that I had learned to design using all AP divs). I have redesigned my site now. Everything looks great in Firefox and Safari; but I'm having a problem with spaces between the div tags in Solution Explorer.

    Please see problem and source code here:
    http://www.renegadegraphics.biz/renegade_graphics_contact_us.htm

    There is a space under the banner div in the left sidebar. Can anyone help me please with this. I have the two fill and margins set to 0.

    Thanks in advance for your help.

    -Change

Maybe you are looking for