Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

problem in css

Posted on 2011-03-15
1
Medium Priority
?
180 Views
Last Modified: 2012-05-11
hi
           i have a problem in css.

in the following code apart from header and footer

i need 4 divisions in the mid part

menu (already done - left)
dynamically loaded content(already done-middle)
right side 2 division tags each  of the height half of the dynamically loaded content.(WHICH IS WHERE MY PROBLEM IS)



Html part:

<!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=utf-8" />

<title>Untitled Document</title>


<link href="../ss.css" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="user.js">

</script>



</head>

<body >
<div id="bod">

<div id="header2">
<div class="logo">
  <img src="../images/logo.jpg" width="209" height="242" alt="logo" id="img1"/></div>
  <div class="topmid">
  <h1 align="center">Blazing Cops</h1>
  <h4 align="center">Helping People Every Millisecond...</h4>
 
  </div>
<div id="topright">
</div>
</div>



<div class="Menu">
  <div class="importantlinks">
    <h3 align="center">Navigation</h3>
  </div>
  <ul class="subnav">
    <li> <a href="#">Home</a><br/>
      <br/>
      <a href="#">RTI act</a><br/>
      <br/>
      <a href="#">Recruitment</a><br/>
      <br/>
      <a href="#">Complaint Registration</a><br/>
      <br/>
      <a href="#">Feedback</a> <br/>
      <br/>
      <a href="#">Suggestions</a><br/>
      <br/>
      <a href="#">News And Events</a><br/>
      <br/>
      <a href="#">About us</a><br/>
      <br/>
      <a href="#">Contact us</a><br/>
    </li>
  </ul>
</div>
<div class="content-to-replace"></div>
<div id="midright"></div>
<div id="footer">
  <p align="center">Site designed by <a href="http://www.ajitah.com">Blazing Cops Team</a> <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">&nbsp;&nbsp;&nbsp;XHTML</abbr>  </a>| <a  href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a>  </p>

</div>
</div>


</body>
</html>









CSS part:

@charset "utf-8";
/* CSS Document */

#bod
{
      
      border:dashed;
      width:100%;
      clear:both;
}


#img1
{
      height:165px;
      width:160px;
}

.topmid
{
      position:relative;
      float:none;
      height:153px;
      width:670px;
      padding-top:10px;




}


 .logo
{
      

      background-repeat:repeat-x;
      float:left;
      width:160px;
      height:158px;
      background-position:center;
      
}

.message
{
      padding-left:10px;
      width:510px;
      height:120px;
      font-size:14px;

      
}


.Menu
{
      position:relative;
      float:left;
      width:17%;
      height:58%;
      border-color:#F00;
      background-color:#FFF;
      border:groove;
      top:2%;
      overflow:auto;

      
}

.subnav {
      margin: 0px;
      padding: 10px 10px;
      padding-top:30px;
      list-style-type: none;
      
      
}
.subnav li {
      display: block;
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      border-bottom-width: 1px;
      border-bottom-style: dashed;
      border-bottom-color: #D8D3B9;
      padding-left:10px;
}

#footer {
      
      width:100%;
      background-repeat: repeat-x;
      background-color: #ffffff;

      padding-right: 25px;
      
      border:groove;
      background-color:#FFF;
      clear:both;
      min-height:50px;


      

}
      
      

#topright
{
      position:absolute;
      background-image: url(images/topright.jpg);
      background-position:center;
      width:267px;
      right:4px;
      clear:both;
      height:163px;
      top:4px;

}

#header2{
      position:relative;
      
      background-image:repeat-x;
      height:25%;
      background-color:#DDDD44;

width:100%;
      border:groove;
      clear:both;
}      


.importantlinks
{
      background-color:#F00;
      color:#FFF;
      width:auto;
}

#img2
{
      position:relative;
      top:10px;
      left:250px;
      width:180px;
}


#img3
{
      position:absolute;
      top:70px;
      left:20px;
}


.content-to-replace
{

       min-height:110%;
      width:58%;
        margin-left: 22.1%;
        /*change this also*/
        border: 1px solid #000000;
      
      position: relative;
      display:inline-table;
      
      

}

#midright{
      width: 23%;
      margin-left: 80.2%;
      height:39%;      
      border: 1px solid #000000;
      position:relative;


      clear:both;
      
}










Pls help
thanks in advance!
0
Comment
Question by:manikandan689
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
dwkd earned 2000 total points
ID: 35139612
4 with the menu or 4 extra?
i recommend you put the menu inside a container and add 3 more mid contet divs .. and float all 4 left or display as inline:block or display as table-cells or however you wanna do it
if u float left remember to clear:left  :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question