Putting a frame over an image.

Live forum: http://forum.freeipodguide.com/viewtopic.php?t=35571

mnx12

19-03-2006 19:09:09

So I have a picture that I want to use as a main for a website & put a news section in the corner. So how do I do a frame over an image that will be transparent? Sorry if thats confusing

Veek

19-03-2006 19:32:40

Yes, that is confusing. And because it's confusing, it will not get you any solid answers.

mnx12

19-03-2006 19:37:10

Well, i just want a frame over an image, like a box with news...

Veek

19-03-2006 19:55:53

[quoteac811d5dda="mnx12"]Well, i just want a frame over an image, like a box with news...[/quoteac811d5dda]

You mean you'd like a box of news, but the box to be transperant so there's an image in the back? Maybe like a "background image" of the box?

Admin

19-03-2006 20:03:02

[code1f6a4debe08]
<div style="background-image: url("images/somebackground.gif");">
news item blah blah blah
</div>
[/code1f6a4debe08]
there's lots of stuff you can do with the image placement... google around

mnx12

19-03-2006 20:04:45

its not the background image though...

Veek

19-03-2006 20:04:59

[quote6050310ed6="Admin"][code16050310ed6]
<div style="background-image: url("images/somebackground.gif");">
news item blah blah blah
</div>
[/code16050310ed6]
there's lots of stuff you can do with the image placement... google around[/quote6050310ed6]

FYI, your new profile picture is hot.

Admin

19-03-2006 20:52:37

i dont really like tabasco

darkscout

19-03-2006 20:56:07

[quoteea38b89dd8="mnx12"]its not the background image though...[/quoteea38b89dd8]

But it will be. Atleast how I'm reading it. You want an image in the [iea38b89dd8]background[/iea38b89dd8] of some news.

Don't do frames. Frames will make your website look like it came out in 1997. Find some tutorials on CSS.

mnx12

19-03-2006 21:01:00

[quote519182277e="mnx12"]You want an image in the [i519182277e]background[/i519182277e] of some news.[/quote519182277e]no, i want a frame on top of an image. a frame that fits perfectly onto the one image and thats it

Admin

19-03-2006 21:07:26

so define the div's size to match the image's size and use the css background-image specification

darkscout

19-03-2006 21:10:09

[quote4d7b8adee9="mnx12"][quote4d7b8adee9="darkscout"]You want an image in the [i4d7b8adee9]background[/i4d7b8adee9] of some news.[/quote4d7b8adee9]no, i want a frame on top of an image. a frame that fits perfectly onto the one image and thats it[/quote4d7b8adee9]

You're argueing semantics.

"Go stand behind that person."

"I don't want to, I want to stand in front of them"

And like I said. Don't do frames. They're the devil. You'll never get them to work right in all browsers. It simply won't look right. Make a CSS div align absolute if you want to place it somewhere on the page.

mnx12

19-03-2006 22:34:46

[quotef310536491="darkscout"]Make a CSS div align absolute if you want to place it somewhere on the page.[/quotef310536491]Fine, but how do i do that?

darkscout

20-03-2006 03:53:11

[quote5aa44e9720="mnx12"][quote5aa44e9720="darkscout"]Make a CSS div align absolute if you want to place it somewhere on the page.[/quote5aa44e9720]Fine, but how do i do that?[/quote5aa44e9720]

http//www.w3.org/TR/REC-CSS2/visuren.html[]http//www.w3.org/TR/REC-CSS2/visuren.html


http//www.yourhtmlsource.com/stylesheets/csslayout.html[]http//www.yourhtmlsource.com/stylesheets/csslayout.html

Along with the background image discribed above.