skelleex — 2012-07-12T22:21:25-04:00 — #1
I have a fluid layout and I want to ensure that an image is always in the top right hand corner and on the lower left hand corner how can this be done in css3 (it is something like a border but the outline is only in 2 corners). Lastly please note i have a header, footer and 3 other divs floated left between them just mentioning them in case it matters. Also my page is within a container class so the border should be on the ends of the container.
ralphm — 2012-07-12T22:26:30-04:00 — #2
I think we need to see an example of what you are doing—either a screen shot or a link. One way to place those images you mentioned is with position: absolute. For example, you could set one image to
skelleex — 2012-07-12T22:30:23-04:00 — #3
hmm am having difficulty uploading the image of how it looks but its simply an image in those corners of the container
ralphm — 2012-07-12T22:35:37-04:00 — #4
Yeah, it can be troublesome. I've found if you click Go Advanced when posting (bottom right) then click Manage Attachments, you can upload images with no problem.
skelleex — 2012-07-12T22:39:31-04:00 — #5
Ok so i attached the pic and well as you can see there are some nice stylish lets call them thingys at the top right hand corner and the lower left hand corner I want to implement that using css3. However in my page build this page is actually a div called container which is in the body of my code its about 80% of the body
ralphm — 2012-07-12T23:28:17-04:00 — #6
OK, if you really want to use CSS3 multiple background images, you can add those images to the container div (assuming the container has a class of "container"—so change to suit):
background: #000000 url("top-right.png") no-repeat right top, url("bot-left.png") no-repeat left bottom;
background-repeat: no-repeat, no-repeat;
background-position: right top, left bottom;
If you want it to work in older browsers, you could instead wrap the container div in one or two divs and put each image separately on them (one div if you don't already have a background image on the container, two divs if you do).
Of course, change the background color to whatever color the container actually has, if any.
skelleex — 2012-07-14T16:23:34-04:00 — #7
i have a gradient already on the container is there anyway to put this image over the background image that already exist
dresden_phoenix — 2012-07-14T16:55:35-04:00 — #8
Again, you could use CSS3 to put images all in one element:
background: url("gradient.gif") #000;
background: url("top-right.png") no-repeat right top, url("bot-left.png") no-repeat left bottom, url("gradient.gif") repeat-x left top #000;
remember, you'll then need to add the class 'container' to your outermost element ( or even the BODY element) also be aware that browsers which don't support CSS3 wont see the extra two graphics.
skelleex — 2012-07-14T17:03:22-04:00 — #9
am actually using a css3 gradient so i looks like this
background-image: linear-gradient(bottom, #0A000B 0%, #372646 61%, #0A000B 100%);
so I need to suit it to that
skelleex — 2012-07-14T17:14:21-04:00 — #10
I actually tried
background-image: url(../images/Top_Right.png) no-repeat right top, url(../images/Bott_Left.png) no-repeat left bottom, -webkit-gradient(
but that doesn't work.
system — 2014-10-07T22:40:09-04:00 — #11
This topic is now closed. New replies are no longer allowed.