Hello, I am currently having a little CSS issue with a small project I’m working on.
I’m not making anything fancy, I’m just trying to get all the positioning and basics ready so I don’t think what I’m asking isn’t very complicated.
I’m trying to formulate a ordered list, which contains 3 sections within the <li></li> one section which have the options for that particular list, one main content section, and another type of options on the other side.
The problem is that the idea class, width does not extend at the desired width nor does the background color. I want it to be a certain width, even with little information.
The other problem is that the .toolsright isn’t inline. it is under .idea but i want it beside it.
Here is my code (this is a simplified version of course and the css is another file… but its easier to display it like this)
Inline elements do not take dimensions and are only as big as the content they hold.
You would need to float the elements if you want to apply widths. Remember also to remove the default padding and margin from your lists or the measurements will be wrong.
It looks as though your 900px width will be too wide anyway to hold all that content in one line.
You could change the design a bit and allow the middle section to be an auto width like so.
However it looks as though you have tabular data there (although its hard to tell from the small snippet shown) and the best element for tabular data is a table anyway.