View Full Version : can i do this with CSS?

04-21-2007, 03:02 PM
Im trying to figure out how to do this with css. Is it possible?

I am using a .container to display a bottom image, .container p to display right/left borders, & .container h2 to display top image. I have a image floated w/in the <p> and Id like to have a list of links to the left of the image and <p> element. (Ive moved the <p> over using padding-left of 155px.
See the grey box http://cellocelli.com/test2.htm
Is it possible to include a list of links within that area left of the picture & text using css?

.containerBottom {
width: 520px;
float: left;
background-color: #758279;
background-repeat: no-repeat; background-position: bottom;
margin-bottom: 20px;

.containerBottom p {
font: normal 1.2em Verdana;
color: #fff;
padding: 5px 10px 5px 155px;
border-left: 1px solid #333; border-right: 1px solid #333;

.containerBottom h2 {
font-size: 1.3em;
padding: 15px 14px 15px 12px;
margin: 0px;
text-align: left;
background-repeat: no-repeat; background-position: right top;

.containerImage {
margin-right: 13px;
margin-bottom: 4px;
outline:1px solid #000;

04-21-2007, 10:54 PM
added another floating element before the image or the text and things work just fine.

04-22-2007, 03:23 AM
Did you get your previous problem sorted?

Wish I could help you but I'm still trying to get to grips with css myself.

It's quite interesting watching your web site developing. :grin:

04-22-2007, 02:33 PM
It's quite interesting watching your web site developing.Tell me about it! A couple of weeks ago I knew next to nothing about site design or no stinkin' CSSing. Thanks for looking in.
This current problem has been resolved which has shown a new issue :-D.
Any thoughts?

Regarding the text on the right side of my colored box: http://cellocelli.com/test2.htm Id like to style the text in the bottom differently from the top. Id like to create a 1px top border with a color of my choosing rather than my current method or manually typing in a line than receives the color on text. My problem is that the side borders of the box come from the <p> element. Disturbing that element to restyle the bottom text creates a gap in the boxes side border. Can I somehow float another element w/in the <p> to style the bottom text and give it a border-top?

2. Separate IE issue: IE seems to create a gap between my h2 (which has my top image) & the side borderlines in my <p> element. IE also is overriding my link values for the div class with other values.

New floated element which hold the image & links
.containerList {
color: #fff;
width: 140px;
margin:0px 10px 10px 5px;
padding: 5px;
border-right: 1px solid #ABB4A9;

.containerList h6 {
font-size: 1.2em;

.containerList a {
font-size: 1.2em;
padding:.2em .6em;