[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Centering a DIV exactly

Asked by brookba in Hypertext Markup Language (HTML), Cascading Style Sheets (CSS)

Tags: HTML, All

Hi there,

I have been wrestling with this problem for a while now... had a look around on the web and on here but I can't find a solution which works for me. I am trying to get my web page to appear in the middle of the screen on all browsers but am having problems with centering my DIVS to the middle of the screen both horizontally and vertically,

here is an example of what i am trying to achieve:

http://www.infinitywebdesign.com/research/cssverticalcentereddiv.htm

I can't seem to get it to work with my divs though... here is my html and css code:

===================================================================
EXAMPLE HTML CODE (index.html)
===================================================================
<html>
<head>
<title>Homepage</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="outer">

<div class="menu">
   <span class="menufont">
    <img src="images/logo.jpg" alt="Logo" /><br />
    HOME<br />
    COLLECTION<br />
    CLASSIC<br />
    NEW COLLECTION<br />
    SILVER COLLECTION<br />
    GOLD COLLECTION<br />
    DIAMOND COLLECTION
    <br />
    RELATIVE LINKS<br />
    CONTACT US<br />
    HISTORY<br />
    SITE MAP<br />

 </span></div>

<div class="content">

<h1>Personalised Gobblegook<br /><br />
ense, gobbledygook is a hurdle of communication at best, a means of imposing power at worst.
The term was coined on March 30, 1944 by Maury Maverick, chairman of the Unit<br/>
<br/>
<img src="images/introimage.jpg" alt="alt text" width="247" height="178" hspace="10" vspace="5" align="right" /><br />
obbledygook or gobbledegook (sometimes shortened to gobbledegoo) is an English term used to describe nonsensical language,
sound that resembles language but has no meaning, or unintelligible encrypted text. It is also used to refer to official, professional
or pretentious language. In this sense, gobbledygook is a hurdle of communication at best, a means of imposing power at worst.
The term was coined on March 30, 1944 by Maury Maverick, chairman of the United States Smaller War Plants Corporation.
In a memo banning "gobbledygook language", he wrote "anyone using the words activation or implementation will be shot".
[1] Maverick"<br/>


</h1>



</div>

</div>
<div class="footer">terms you are here</div>

</body>
</html>

========================================================
EXAMPLE CSS CODE
========================================================
/* CSS */

body {
      background:#CCCCCC;
      }

.outer {
      width: 750px;
      text-decoration: none;
      margin: 0 auto;
      height: 550px;
      background-color:#FFFFFF;
      }

.footer {
      width: 750px;
      text-decoration: none;
      margin: 0 auto;
      background-color:#969696;
      }

.menu {
      width: 190px;
      text-decoration: none;
      margin: 0;
      padding: 0;
      text-align: center;
      border:0;
      height: 450px;
      float:left;
      }
      
.menufont {
font-size:10.5px;
font: Arial, Helvetica, sans-serif;
line-height:35px;

      }
      
.header {
      width: 550px;
      text-decoration: none;
      height: 110px;
      background-color:#FFFFFF;
      text-align:center;
      float: right;
      }

.content {
      width: 550px;
      text-decoration: none;
      height: 300px;
      float:right;
      background-color:#FFFFFF;
      }

h1 {
      font-family:Arial, Helvetica, sans-serif;
      text-decoration:none;
      font-size: 11px;
      color: #333333;
      margin: 10px;
      text-align:center;
      }
      
h2 {

      font-family:Tahoma;
      text-decoration:none;
      font-size: 11px;
      color: #657272;
      margin: 10px;
}
.tabletext1 {
      font-family:Tahoma;
      text-decoration:none;
      font-size: 11px;
      color: #B09850;
      text-align: center;
}
.dropdowntext {

      font-family:Tahoma;
      text-decoration:none;
      font-size: 11px;
      color: #657272;
      text-align: center;
}

a:link, a:visited, a:active{
      font-family: Arial, Helvetica, sans-serif;
      text-decoration: none;
      color:#95ACA6;
}


a:hover {
      font-family: Arial, Helvetica, sans-serif;
      color:#333366;
      text-decoration: none;
}

=======================================================

Thanks for any help in advance....
[+][-]02/11/08 02:27 AM, ID: 20865176Accepted Solution

Your question has an Asker Certified™ answer! brookba verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zones: Hypertext Markup Language (HTML), Cascading Style Sheets (CSS)
Tags: HTML, All
Sign Up Now!
Solution Provided By: shirazti
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20100308-EE-VQP-137 / EE_QW_2_20070628
Your technology problems solved.
Close See Plans and Pricing. Try it FREE for 30 days.