css position
- Started
- Last post
- 14 Responses
- ldww
i have a div with a bunch of crap in it. one of the things inside is another div that i would like to appear over(float) everything inside the main div, but be positioned in the right corner.
i have tried float: right
position: absolute;
position: relative; right: 0.with no luck. what am i missing?
- jakeyj0
you mean like have the floated div cover up the content?
- version30
make it a class inside the div instead of a div inside a div and just use float: right; in your css or whatever you need
#content {
width: 400px;
}#content .item {
background-color: #f4f4f4;
margin: 0px;
padding: 10px;
min-height: 200px;
}#content .item .image {
float: right;
padding: 10px;
}
- ldww0
i tried floating it right, however it appears to be pushing down the content.
- jakeyj0
i'm a bit confuzzled at what you're trying to accomplish...
are you trying to get the "adm
dfssdaf" to center over the images?
- ldww0
gimme a sec, i just looked at it in firefox and i need to fix that shit first :)
- ldww0
ok... thats better.
i would like "adm dfssdaf" to be in the upper right corner, but not push down the image (appear over it) there should only be a 10px margin at top not 30 or so what is there now.
- ldww0
its called 2lane. it was a commissioned font. it looks similar to interstate thou.
- ldww0
and yes, text on top of image.
- version30
yeah i have interstate so i recognized it, i liked the rounded corners all over that
sowhat you're saying is i can't get a hold of it huh?
i'll get back to you on that css in a sec
- ldww0
you don't want it. it suckssss. its a really shitty font. looks nice, but very poorly made.
- jakeyj0
over the top is going to be difficult. you'll probably have to use the z-index.
check out this:
- version30
also, if you take
width: 30px;out of
.thumbnail .iconsthe text won't hang over like it is
