Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
div image border question
Old 06-28-2008, 08:47 PM div image border question
Junior Talker

Posts: 2
Name: Andrew Min
Trades: 0
Hey all,
First post here, though I've been writing HTML since I was ten. I've been trying to figure out how to make a div have an image border. As in, I upload a picture (what the heck, I'll attach it below) and make that a border. I couldn't figure out how to do it. Is there any way to do it with a div? If not, a table or paragraph or anything???
Attached Images
File Type: png dot.png (152 Bytes, 28 views)
andrewmin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2008, 07:45 AM Re: div image border question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Can't be done directly in CSS, well not until client browsers support CSS3 (don't hold your breath).

It can be mimicked though by setting a parent container with the background you want to use then overlaying a child container so the parent background can be seen around the outside of the child
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-29-2008, 09:06 AM Re: div image border question
Junior Talker

Posts: 2
Name: Andrew Min
Trades: 0
Sounds interesting... so I'd manually edit the background image?

Wouldn't that wreak havoc for bigger or smaller displays?
andrewmin is offline
Reply With Quote
View Public Profile
 
Old 06-29-2008, 01:03 PM Re: div image border question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by andrewmin View Post
so I'd manually edit the background image?
Just define it in the CSS rules.

Quote:
Originally Posted by andrewmin View Post
Wouldn't that wreak havoc for bigger or smaller displays?
Not necessarily, fixed width layouts take care of themselves and a fluid width layout might need a bit of DHTML to take care of pixel positioning while relative sizing will simply adjust as needed.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-02-2008, 04:59 PM Re: div image border question
Novice Talker

Posts: 11
Trades: 0
Just put one div inside another - give the outer div a background image - and you will effectively have an image border. You can get alot more creative this way.

Just not possible to do with a single div.
kceleb9 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to div image border question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35688 seconds with 13 queries