CSS: Creating a Fluid layout Problem?
-
So i started building a site and decided to use a Fluid lay out, So i am using % for the div width and height. The problem being is that i am having to mix % and px for the heights on divs because if i set my wrapper to 100% the content inside is too small and using px for the div nestled in side will make it over-flow the wrapper, so if i choose to use % heights on all the divs will my content in side the wrapper expand when needed ? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CraigHornseyPortfolio</title> <link rel="stylesheet" href="03.css" type="text/css" /> <script src="jquery.js"></script> <script src="03.js"></script> </head> <body> <!-- wrapper --> <div id="wrapper"> <!-- header start --> <div id="header"> </div> <div id="header_menu"> <ul> <li>Home</li> <li>Portfolio</li> <li>Contact</li> </ul> </div> </div> <!--Header End --> <div id="content"> </div> <!--content End--> </div> <!--end wrapper --> </body> </html> Css Style html, body { margin: auto; padding: 0; min-width:960px; max-width:1200px; } body { font: 62.5% Verdana, Helvetica, Arial, sans-serif; color: #000; background:#666; } #wrapper { border:1px solid; width:80%; height:960px; margin:auto; } #header { width:95%; margin:auto; height:30%; background:#666; border-bottom:1px solid #444444; } #logo { width:50%; height:200px; float:left; } #header_menu { margin-top:140px; height:50%; width:40%; float:right; h1 { font-size: 2.5em; margin-bottom: 0; } h2 { font-size: 1.3em; margin-bottom: .5em; } h3 { font-size: 1.1em; margin-bottom: 0; } #Text_Area{ border:1px solid; width:50%; height:90%; margin:auto; } #content { height:50%; width:95%; margin:auto; border:1px solid #444444; }
-
Answer:
Choosing Dimensions for Your Web Page Layout: In Search of the Holy Grail: http://www.alistapart.com/articles/holygrail/ Choosing Dimensions for Your Web Page Layout: http://www.elated.com/articles/choosing-dimensions-for-your-web-page-layout/ How to create flexible sites quickly using standards like CSS and XHTML: http://www.ibm.com/developerworks/web/library/wa-rapid/ Care With Font Size: http://www.w3.org/QA/Tips/font-size Designing for the Web: Resolution and Size: http://sitepointcom.createsend4.com/t/y/l/ydlyuyd/birtthtw/h/ Websites Shouldn’t Look The Same Across Different Browsers: http://www.noupe.com/design/websites-shouldnt-look-the-same-across-different-browsers%E2%80%A6here-is-why.html Cross-Browser CSS in Seconds with Prefixr: http://net.tutsplus.com/articles/news/cross-browser-css-in-seconds-with-prefixr/ Responsive Web Design Demystified: http://www.elated.com/articles/responsive-web-design-demystified/ Responsive Web Design: 5 Handy Tips: http://www.elated.com/articles/responsive-web-design-5-handy-tips/ It’s Not Responsive Web Building, It’s Responsive Web Design: http://www.getfinch.com/finch/entry/its-not-responsive-web-building-its-responsive-web-design/ Ron
Yahoo! Answers Visit the source
Other answers
Choosing Dimensions for Your Web Page Layout: In Search of the Holy Grail: http://www.alistapart.com/articles/holygrail/ Choosing Dimensions for Your Web Page Layout: http://www.elated.com/articles/choosing-dimensions-for-your-web-page-layout/ How to create flexible sites quickly using standards like CSS and XHTML: http://www.ibm.com/developerworks/web/library/wa-rapid/ Care With Font Size: http://www.w3.org/QA/Tips/font-size Designing for the Web: Resolution and Size: http://sitepointcom.createsend4.com/t/y/l/ydlyuyd/birtthtw/h/ Websites Shouldn’t Look The Same Across Different Browsers: http://www.noupe.com/design/websites-shouldnt-look-the-same-across-different-browsers%E2%80%A6here-is-why.html Cross-Browser CSS in Seconds with Prefixr: http://net.tutsplus.com/articles/news/cross-browser-css-in-seconds-with-prefixr/ Responsive Web Design Demystified: http://www.elated.com/articles/responsive-web-design-demystified/ Responsive Web Design: 5 Handy Tips: http://www.elated.com/articles/responsive-web-design-5-handy-tips/ It’s Not Responsive Web Building, It’s Responsive Web Design: http://www.getfinch.com/finch/entry/its-not-responsive-web-building-its-responsive-web-design/ Ron
Shadow Knows
Related Q & A:
- Is there a way of creating a interactive word document?Best solution by pcworld.com
- What should a UX designer know about CSS (for a job interview?Best solution by User Experience
- How to start creating a php script, that will be installed on many servers?Best solution by Stack Overflow
- Where can I find good a tutorial for creating a simple flash movie using Adobe Flash CS4?Best solution by Graphic Design
- My knee feels very swollen could there be a fluid in it?
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.