473,237 Members | 1,265 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 software developers and data experts.

Floating Problem

150 100+
I'm having problem with this css why i don't know

That is my HTML:
[HTML]<div id="main_container">
<div id="menu">
<div id="menu_Categories">
<img src="../IMGS/LIST_O_00.gif" width="13" height="14" align="top" border="0"/> Smartic Categories
</div>
<div id="Sub_Categories">
<a href="#"><img src="../IMGS/LIST_O_01.gif" width="13" height="13" align="top" border="0"/> Real Estate</a>
<a href="#"><img src="../IMGS/LIST_O_01.gif" width="13" height="13" align="top" border="0"/> Video Games</a>
</div>
</div>
<div id="container_body">Welcome visitors</div>
</div>[/HTML]

That is my CSS:

Expand|Select|Wrap|Line Numbers
  1. #main_container {
  2.     color: #666666;
  3.     padding-top: 50px;
  4.     padding-right: 10px;
  5.     padding-bottom: 10px;
  6.     padding-left: 10px;
  7.     border: 1px solid #CCCCCC;
  8. }
  9. #menu {
  10.     width: 200px;
  11.     float: left;
  12. }
  13. #menu_Categories {
  14.     background-color: #9bcdff;
  15.     color: #FFFFFF;
  16.     padding: 5px;
  17. }
  18. #Sub_Categories {
  19.     border-right-width: 1px;
  20.     border-bottom-width: 1px;
  21.     border-left-width: 1px;
  22.     border-top-style: none;
  23.     border-right-style: solid;
  24.     border-bottom-style: solid;
  25.     border-left-style: solid;
  26.     border-right-color: #CCCCCC;
  27.     border-bottom-color: #CCCCCC;
  28.     border-left-color: #CCCCCC;
  29.     padding: 5px;
  30. }
  31.  
  32. #Sub_Categories a {
  33.     color: #999999;
  34.     font-size: 11px;
  35.     display: block;
  36.     padding: 3px;
  37. }
  38. #Sub_Categories a:hover {
  39.     color: #FF3300;
  40.     background-color: #E2EFFE;
  41.     border: 1px solid #666666;
  42.     padding: 2px;
  43. }
  44. #container_body {
  45.     margin-left: 220px;
  46. }
Sep 15 '07 #1
3 1308
ronverdonk
4,258 Expert 4TB
So you showed the code. What is the problem you encounter?

Ronald
Sep 15 '07 #2
smartic
150 100+
Smartic Categories should be within the border of the page but it dosen't do that it gets out of the border of the page
Sep 15 '07 #3
drhowarddrfine
7,435 Expert 4TB
Elements are not to expand to contain floated elements. But to do what you want, add 'overflow:auto' to #main_container.
Sep 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Amit Bhatia | last post by:
Hi there. I am cross posting this on comp.lang.c as well: sorry for same. The problem I am facing is as follows: For example: double a= 0.15; double b=2.4; const double VERYTINY =1.e-10; I...
5
by: Anton Noll | last post by:
We are using Visual Studio 2003.NET (C++) for the development of our software in the fields digital signal processing and numerical acoustics. One of our programs was working correctly if we are...
12
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of...
10
by: Shawn | last post by:
Hello all, I apologize as I am sure this has probably been dealth with before... but I am doing an exercise from "Practical C Programming" and I have been unable to get it to work perfectly due to...
7
by: Daniel Vallstrom | last post by:
I am having trouble with floating point addition because of the limited accuracy of floating types. Consider e.g. x0 += f(n) where x0 and f are of some floating type. Sometimes x0 is much larger...
15
by: michael.mcgarry | last post by:
Hi, I have a question about floating point precision in C. What is the minimum distinguishable difference between 2 floating point numbers? Does this differ for various computers? Is this...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
32
by: ma740988 | last post by:
template <class T> inline bool isEqual( const T& a, const T& b, const T epsilon = std::numeric_limits<T>::epsilon() ) { const T diff = a - b; return ( diff <= epsilon ) && ( diff >= -epsilon );...
39
by: rembremading | last post by:
Hi all! The following piece of code has (for me) completely unexpected behaviour. (I compile it with gcc-Version 4.0.3) Something goes wrong with the integer to float conversion. Maybe somebody...
6
by: Jeremy | last post by:
I've got a floating div which becomes visible when a link is clicked. I want the div to be hidden when the user clicks anywhere on the page except for whithin the div. What is the best way to do...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.