Results 1 to 4 of 4

Thread: HTML/CSS Percentage problem

  1. #1
    Join Date
    Oct 2008
    Posts
    24

    HTML/CSS Percentage problem

    I am in the process of developing a system where I have everything to scale rates. Now I walk down, the problem is as follows.

    I have a div container menu and content. These are 30% and 70% width and 100% high in good works. Now I have a header over, but it has no fixed rate just height. So be aware that permanent min 100% of the menu and content area. This is precisely the problem as the margin slide neatly into the whole thing down and get a scrollbar.... not what I want.

    Someone have suggestions how to resolve this? Below my html/css. Can consist of errors and good things in it, it's the test phase.

    Code:
    html, body ( 
          background-color: # e4e4e4; 
          margin: 0; 
          padding: 0; 
          font-family: Arial; 
          font-size: 11px; 
          height: 100%; 
    
      ) 
    
      div # wrapper ( 
          position: relative; 
          margin: 0; 
          padding: 0; 
          height: 100%; 
      ) 
    
      div # menu ( 
          float: left; 
          width: 24%; 
          margin: 0; 
          padding: 0; 
          border: 1px solid black; 
          overflow: scroll; 
          height: 100%; 
          margin-top: 130px; 
      ) 
    
      div # content ( 
          position: absolute; 
          float: left; 
          width: 75%; 
          margin: 0 0 0 0; 
          left: 25%; 
          padding: 0; 
          border: 1px solid black; 
          overflow: scroll; 
          height: 100%; 
      ) 
    
      div # top ( 
          position: absolute; 
          height: 100%; 
          width: 100%; 
      )
    Code:
     <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "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=iso-8859-1" /> 
              deLuxe <title> System </ title> 
              <link rel="stylesheet" type="text/css" href="style.css" /> 
          </ head> 
         <body> 
    
              <div id="wrapper"> 
                  <div id="top"> 
                      <div id="menu"> 
    
                      </ div> 
    
                      <div id="content"> 
    
                      </ div> 
                  </ div> 
              </ div> 
          </ body> 
      </ html>

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: HTML/CSS Percentage problem

    You can search for the errors through online sites.

  3. #3
    Join Date
    Oct 2008
    Posts
    24

    Re: HTML/CSS Percentage problem

    It is no longer necessary, have been resolved. Yet thanks.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: HTML/CSS Percentage problem

    And I am curious about your solution actually, since this is something which many people will benefit of.

Similar Threads

  1. Urgently Needing Answer Html Problem Please Help
    By dillon78 in forum Software Development
    Replies: 1
    Last Post: 10-04-2012, 11:49 AM
  2. Percentage problem on width of table columns
    By Zeverto in forum Software Development
    Replies: 3
    Last Post: 12-08-2009, 11:42 AM
  3. Problem php AND html
    By CodGuru in forum Software Development
    Replies: 5
    Last Post: 16-04-2009, 11:17 PM
  4. Problem Loading Flash in HTML
    By Kusagra in forum Software Development
    Replies: 4
    Last Post: 25-03-2009, 10:42 AM
  5. Html link code problem
    By ByteCoder in forum Software Development
    Replies: 4
    Last Post: 09-02-2009, 06:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,288,065.89384 seconds with 16 queries