Making divs expand to the height of the highest div

I'm currently building my portfolio website. I'm not a coder and find it difficult so I really need simple answers if possible please. The page I'm working on can be found here: http://www.infomaticfilms.com/jack/jrimg/g_and_d.htm. It's far from finished as I don't want to move on until I fix this problem. This page will be a generic page for all the various project pages which means they will all have different heights. Rather than make individual pages for each project I'd like to make just one that I can use for all by merely deleting the content each time and re-saving the page. If you click on the Me or Contact link you can see the other pages to see the border. I read an article from Stack Overflow and I'm very close to the solution. I have a problem with Firefox though which adds 1 pixel to the right hand border. Here's the HTML:
<div class="contentAndBorders">
  <div class="borderLeft"></div>
  <div class="mainContentProjectPage">
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
    <p>Content goes here</p>
  </div>
  <div class="borderRight"></div>
</div>
I'm looking to put the content into the div with the class of mainContentProjectPage. I need the divs with the classes of borderLeft and borderRight to expand with the height of mainContentProjectPage which is what they do. It's basically three columns. The first and third columns are the white borders to the left and right and the middle column is for the content. Here's the CSS:
.contentAndBorders {
          width: 950px;
          position: relative;
          overflow: hidden;
.mainContentProjectPage {
          float: left;
          background-color: #F55816;
          width: 100%;
          padding-left: 24px;
.borderLeft {
          float: left;
          background-color: #FFF;
          width: 1.3%;
          background-attachment: scroll;
          background-image: none;
          background-repeat: repeat;
          background-position: 0px 0px;
          position: absolute;
          left: 0px;
          height: 100%;
          margin: 0;
.borderRight {
          background-attachment: scroll;
          background-color: #FFF;
          background-image: none;
          background-repeat: repeat;
          background-position: 0px 0px;
          width: 1.3%;
          float: left;
          position: absolute;
          right: 0px;
          height: 100%;
          margin: 0;
I don't really understand how it works, just that it does. If anyone knows a better way of achieving the same result then I'd be very grateful as this is the final part of my site. My question is does anyone know how to get rid of the extra 1 pixel on the right hand border? It looks perfect in Safari and Chrome. Any help and advice would be a life saver.
Thanks
Jack

I'm not a coder and find it difficult so I really need simple answers if possible please.
You need to understand HTML & CSS code.  If you don't take time to learn the basics, you will continue to be frustrated by the process, your results and by our answers to your questions.
PART 1
Height is determined by page content.  The more content a page contains, the longer the page is.  All sites contain both long and short pages.  So keep your design flexible.  Don't paint yourself into a rigid box.
The CSS height property should never be used on containers that hold text as this will vary from user to user depending on their device and browser settings.  Remove height values from your CSS code.  If needed to reveal a background-image, for example, use the min-height: property.
PART 2
All browsers add default margins and padding (spaces) to every html element.  If you want to shore up the spaces between elements, apply margin:0; padding:0 to all elements or incorporate a CSS Reset method into your site.  http://cssresetr.com/
Finally, when you need a plumber, hire a plumber.  Building web sites looks easy but it's not.   This site will be the first impression many people have of you and your body of work.  You don't get 2nd chances at 1st impressions.  So put your best foot forward. Hire an experienced web designer to help you or take some time off to learn everything you need to learn to do it right.
Best of luck,
Nancy O.

Similar Messages

  • Flex 4 spark text area which expands to the correct height

    Whats the best way to get a simple <s:RichText area which expands to the correct height of the text property?

        <s:RichText text=" test test test test test test test test test test test testtest. test test test test test test test test test test test testtest. test test test test test test test test test test test testtest. test test test test test test test test test test test testtest.test test test test test test test test test test test testtest END." width="400" />
    works for me.  Don't specify a height and it will measure the text.
    BTW, while setting s:TextArea heightInLines to NaN will get it to auto-size the height that is not the intended usuage.  You should use s:RichEditableText which does support auto-sizing in either the width or height dimension if it is not specified.

  • Why is my container div expanding past the 1170px max width in preview mode?

    Why is my container div div expanding past the 1170px max width in preview mode?
    Thanks again,
    Marc

    #wrapper #leftside img {
    float: left;
    width: 399px;
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Ruby7829" <[email protected]> wrote in
    message
    news:gdkr52$m6b$[email protected]..
    > I'm trying to get the image on my homepage (which is 320
    x 214) to sit
    > inside
    > my "leftside" div (which is 380 width). Why is it
    expanding to 380 px if
    > I put
    > it in it's own div which is 320 px? What am I doing
    wrong? Should I not
    > have
    > nested divs?
    >
    > Originally I sliced the leftside out of Fireworks but
    I'm really trying to
    > learn CSS and I want to do this the "right" way.
    >
    >
    http://www.faceyourspaceorganizing.com/test_index.html
    >
    >

  • How can I get the window to expand when the TOC is shown?

    Hello all,
    We have changed our javascript call to open WebHelp in a narrow window. By design and by default, the TOC does not initially show.
    When the "Show TOC" button is clicked, we wish for the window to expand to accomodate the navigation pane. As it is, the two pains will share the narrow window, making things unuable until the user manually resizes the window. Not exactly user-friendly.
    By default, the Help window opens at 290 X 745.
    When the nav pane is expanded, we'd like the window size to become 570 X 745 to accomodate the added width of the TOC.
    Thanks in advance for the advice!

    Do you mean running Firefox in full screen mode?
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then you can hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.
    *https://support.mozilla.org/kb/how-to-use-full-screen
    You can also run Firefox in a maximized window to have easier access to the Menu bar and Navigation Toolbar.

  • SharePoint calendar 2007 - Appointment block is not clear. How do i get ms-cal-tweekitem to expand to the size of ms-cal-eworkday?

    I hope someone can help. Currently when we add an event to a SharePoint 2007 calendar, the amount of time the person has actually booked not clear - see the picture on the left. I'd like the appointment block to expand to show the time covered, as
    shown in the picture on the right.  I think what I need to do is get the table class ms-cal-tweekitem to expand to the height of the td class ms-cal-eworkday that it is sitting in.  I've tried some obvious things like setting the
    height of ms-cal-tweekitem to 100% but that hasn't worked. 
    How can I achieve this? 

    Repost your code, but this time wrapped in [code][/code] tags, so it's legible. And indent it meaningfully.
    It sounds like ultimately the answer is: you have to store some state representing whether there is an appointment on that day, and you have to set the color of the button to indicate that state.

  • [svn:fx-trunk] 8507: Making measureHeightOfItemsUptoMaxHeight consistent with the way we create rows in the datagrid .

    Revision: 8507
    Author:   [email protected]
    Date:     2009-07-10 10:13:11 -0700 (Fri, 10 Jul 2009)
    Log Message:
    Making measureHeightOfItemsUptoMaxHeight consistent with the way we create rows in the datagrid. MakeRow ensures reported row height is round to the nearest integer, measureHeightOfItemsUptoMaxHeight is now consistent.  Fixes a long standing PrintDataGrid issue.
    Bugs: SDK-20237.
    QE Notes: None
    Doc Notes: None
    Reviewer: Glenn/Alex
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20237
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as

    Well, you could do the following:
    1) Create a stored procedure that assembles the data into a rowset with rows and fields like the format you want.
    2) Create stored procedures that handle insert, update, and delete.
    3) Create an entity object definition with all transient attributes. Make the attributes match the elements of one row.
    4) Override doDML() in the entity object class to call your procedures (the doc explains how to do this). You might also need to do a bit of research and figure out if you need to override some other method so you can report rows with transient attribute changes only as needing posting. (getPostState(), maybe?)
    5) Create a view object definition with entity-derived attributes based on your EO attributes.
    6) Override the appropriate methods to call your data assembly procedure rather than execute a query (this is also in the doc).
    Still kind of kludgy, but it keeps your business components pretty clean, especially if you use framework classes to do most of the work for you. (I have a partial example of how to do that here.) Of course, it keeps your business components clean by moving the real work to the DB, but some people find that more maintainable that a kazillion business components.
    Hope this helps,
    Avrom

  • Panel isn't expanding with the window

    Hey,
    I am writing a Sudoku program, and well I haven't really done anything yet. All it does is draw the board (9x9 grid) on a Panel, then the panel is added to the Applet. Thing is, the Applet is set to a 550x550 size, but the Panel doesn't expand with it. It's stuck at the default(?) size. The TextFields (the grid) expand with the window, so only a few are shown on the screen. A screenshot can be found here -> http://i46.tinypic.com/2wnzqtu.png
    Here's the code:
    package sudoku;
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.Panel;
    import java.awt.TextField;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class PlaySudoku extends Applet implements ActionListener
         static final int FRAME_WIDTH  = 550;
         static final int FRAME_HEIGHT = 550;
         static final int BOARD_ROWS    = 9;
         static final int BOARD_COLUMNS = 9;
         static final int BOARD_WIDTH   = 500;
         static final int BOARD_HEIGHT  = 500;
         TextField[][] grid = new TextField[BOARD_ROWS][BOARD_COLUMNS];
         Panel board = new Panel(new GridLayout(BOARD_ROWS, BOARD_COLUMNS));
         public void init()
              this.setLayout(new BorderLayout());
              this.setSize(FRAME_WIDTH, FRAME_HEIGHT);
              for (int i = 0 ; i < BOARD_ROWS ; i++)
                   for (int j = 0 ; j < BOARD_COLUMNS ; j++)
                        grid[i][j] = new TextField();
                        board.add(grid[i][j]);
              this.add(board, BorderLayout.CENTER);
         public void actionPerformed(ActionEvent e)
    }Thanks,
    Coh3n

    Only just checked the image.
    - What OS is that?
    - What is the exact (copy/pasted in code tags) HTML used for the applet viewer?
    Or perhaps - run this variant of your code and report back.
    // <applet code='PlaySudoku' width='650' height='250'></applet>
    import java.applet.Applet;
    import java.awt.*;
    public class PlaySudoku extends Applet
         static final int BOARD_ROWS    = 9;
         static final int BOARD_COLUMNS = 9;
         TextField[][] grid = new TextField[BOARD_ROWS][BOARD_COLUMNS];
         Panel board = new Panel(new GridLayout(BOARD_ROWS, BOARD_COLUMNS));
         public void init()
              this.setLayout(new BorderLayout());
              for (int i = 0 ; i < BOARD_ROWS ; i++)
                   for (int j = 0 ; j < BOARD_COLUMNS ; j++)
                        grid[i][j] = new TextField();
                        board.add(grid[i][j]);
              this.add(board, BorderLayout.CENTER);
              // always a good idea
              validate();
              System.out.println("Size: " + getSize());
              System.out.println("os.name: " + System.getProperty("os.name"));
              System.out.println("java.vendor: " + System.getProperty("java.vendor"));
              System.out.println("java.version: " + System.getProperty("java.version"));
              System.out.println("java.vm.version: " + System.getProperty("java.vm.version"));
    }Here are the results I'm getting, with no odd sizing artifacts.
    andrew@pc1:/media/disk/proj$ javac PlaySudoku.java
    andrew@pc1:/media/disk/proj$ appletviewer PlaySudoku.java
    Size: java.awt.Dimension[width=650,height=250]
    os.name: Linux
    java.vendor: Sun Microsystems Inc.
    java.version: 1.6.0_14
    java.vm.version: 14.0-b16
    andrew@pc1:/media/disk/proj$ Note that on this OS/SDK, the appletviewer can parse an applet element out of the first (commented) line of the Java source file.

  • How can i use text expander with the new Mavericks,

    how can i use text expander with the new Mavericks,

    I regret upgrading to mavericks for the same reason
    ftamez wrote:
    how can i use text expander with the new Mavericks,
    Now I have been searching - and you have to buy an app and it will cost you $34.99 (what a rip off)

  • How do i expand all the nodes in a jtree

    Hi,
    I am working on a project where i need to expand all the nodes of a jtree i have tried a few different ways but it never seems to expand all the nodes..
    I would be very greatful if someone could point me in the right direction
    cheers
    Mary

    you could use the following method that expands nodes recursively
    expandNode( myTree, myRootNode, new TreePath( myRootNode ) );
    public static void expandNode( JTree tree, TreeNode node, TreePath path ) {
        tree.expandPath( path );
        int i = node.getChildCount( );
        for ( int j = 0; j< i; j++ ) {
            TreeNode child = node.getChildAt( j );
            expandNode( tree, child , path.pathByAddingChild( child ) );
    }

  • Need a back feed printer......please start making one again like the mp6220

    I need back feed printer like the mp6220....please start making.

    I would say the advice is pretty spot on
    Don't worry too much about the space for the answers, you can simply "Split" the question region any time there's not enough space for the answer and drag the right hand part to the right.
    Also there's no need to mute the second track.

  • When exporting to a DVD from Final Cut Pro X, what settings are there to make sure you making the highest quality DVD possible?

    When exporting to a DVD from Final Cut Pro X, what settings are there to make sure you making the highest quality DVD possible?

    There have been a lot of recent reports of difficulties sharing to DVD, but haven't been hearing about unreadable disks. Posibly there was an encoding error. Or it could have been bad media (blank disk).
    Does it play in your Mac?
    What brand of disks are you using?
    Russ

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • Why won't my folders in finder expand in the icon view?

    My folders will not expand in the icon view in finder. They also don't expand in the cover flow view, only list and column view show the contents within folders. It's affecting all the items in finder's sidebar. I found this rather bizarre. Has any one had a similar issue?  
    Steve

    nruggles wrote:
    HP Officejet 6500

  • I rcvd an AppleService emaiDue to recent updates we are asking many of our customers to confirm their information this is nothing to worry about. We are making sure we have the correct information on file..." Is this real or a scam?

    I rcvd an AppleService email
    Due to recent updates we are asking many of our customers to confirm their information this is nothing to worry about. We are making sure we have the correct information on file and that you are the rightful account holder. Failure to comply with this may result in your account being suspended.
    Is this real or a scam?

    If you changed your Apple ID, you will not  be able to update any of the content that you used in the past. The worse case scenario here would have been to change the password. Really all you needed to do was go on the Apple site and change the password, unless you provided them with information. This will make it difficult for you to deal with turning off Find My iPhone and other Apple ID related steps. All you really needed to do was delete the email.

  • [svn:osmf:] 16068: Update @includeExample to add symbolic "examples" relative path (that is expanded by the build process).

    Revision: 16068
    Revision: 16068
    Author:   [email protected]
    Date:     2010-05-12 11:17:11 -0700 (Wed, 12 May 2010)
    Log Message:
    Update @includeExample to add symbolic "examples" relative path (that is expanded by the build process).
    Also added -noswf option as we are not compiling the example into a swf for the asdocs.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayerSprite.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

Maybe you are looking for