Wakawaka Posted January 9, 2009 Report Share Posted January 9, 2009 So I just have a quick question. I am creating a website and wanted to make something a little different with more custom graphics. What I am doing is creating an image to essentially become the new custom border. Is this best achieved using div tags around and between the content or best to create an image with both sides w/ specific px sets and use that as the background to the main content tags? Thanks for the time and answers! Quote Link to comment Share on other sites More sharing options...
Wickham Posted January 9, 2009 Report Share Posted January 9, 2009 Many people make an image as a square or rectangle of a certain size which has borders (perhaps shadows or color-graded) with nothing in the middle and then place the content in the middle, but this means a fixed width and height for the page. You can split the borders into a horizontal top say 15px high, a horizontal bottom 15px high, place those in separate divs at top and bottom and then have 15px wide images floated left and right in the main content div so that it has flexible height. If you create small corner images say 15*15px and float them into the corners you can then have flexible width and height by using small background-images for the horizontal and vertical sides which have repeat-x or repeat-y or an adequate length say 15*1000px. See item 12 here:- http://w ww.wickham43.net/specialeffects.php which has flexible height but can be made to have flexible width. Quote Link to comment Share on other sites More sharing options...
Wakawaka Posted January 9, 2009 Author Report Share Posted January 9, 2009 Works perfect, thanks so much! Quote Link to comment Share on other sites More sharing options...
shelfimage Posted January 9, 2009 Report Share Posted January 9, 2009 look at what you'll be able to do in the very near future: http://ejohn.org/blog/border-image-in-firefox/ Works in Safari / Chrome and FF3.1 (beta is available) does not work in IE6,7 and don't think it will in 8, and not in Opera (yet?) Quote Link to comment Share on other sites More sharing options...
Wakawaka Posted January 10, 2009 Author Report Share Posted January 10, 2009 I didn't wanna create a new thread for this, but does anyone know how to link a forum thread post back to, lets say, the home page so it displays and formats to that page? I would imagine that is would have to be a ASP/PHP or a script of some sort. Thanks again Quote Link to comment Share on other sites More sharing options...
Wickham Posted January 10, 2009 Report Share Posted January 10, 2009 I've no idea. You could put it in an iframe which would keep your page format for everything around the iframe, but that's not quite what you want. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.