This is a discussion on Inheritance + CSS within the HTML Basics forums, part of the Coding Help category; Originally Posted by gary.b Eh? err.. sorry - CSS at 1am doesn't go down well. tell me about it, especially ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| a drawing of what you want will be better but anyhow try this: Code: #container {
position: absolute;
left: 43px;
top: 29px;
width: 689px;
height: 503px;
background-color: #FFFFFF;
padding-left:5px;
}
.links {
position: absolute;
left: -1px;
top: 113px;
height: 168px;
width: 161px;
background-color: #CCCCCC;
font-size: 24px;
color: #FFFFFF;
border-left: 7px solid #00FF00;
margin-left:5px;
}
</style>
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| ||||
| thanks a lot, you have added "padding-left:5px;" to the container and changed border-left-width: thick; to border-left: 7px solid #00FF00; I'm more interested in learning here than getting something to work, can you explain why your's worked and mine didn't ? |
| |||||
| with the CSS in your case you have to think like the container is a box and you are inside it together with another box. Now if you want to push the inside box 10cm from the left where are you going to apply the force, inside the second box or from the outside. second option makes more sense. the border for the second box it's easy. we just tell the css how much we want it (7px here) then how we want it to be (solid) and what color (#00ff00) so we came up the following code: border-left:7px solid #00ff00; :::::::::::::::::::::::::::::::::::: some think css it's easy but is not. requires a lot of practise and study. |
| Tags |
| css, inheritance |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Issue for Wordpress Menu.. | Cormac | Coding Help | 4 | 03-12-2006 03:12 PM |
| some simple store with css based layout | kuba77 | Site Reviews / Announcements | 1 | 30-11-2006 03:07 PM |
| How to make a H1 tag in CSS into a link | shanediffily | Coding Help | 4 | 10-10-2006 04:54 PM |
| dynamic css | 7aken | Coding Help | 6 | 10-10-2006 08:13 AM |
| ||||||||
| | ![]() | |||||||