| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Oct 2004
Location: Chester
Posts: 364
|
Sliding Doors
Now I'm not sure if this has been addressed and I just haven't found it yet. I know how to do the sliding doors with navigation buttons and also simple boxes. I know to have the box totally flexible and indestructible you need to apply the two images to the four corners of the box. However, if you have a box that is going to be a bloody big box in terms of say taking content for a large blog entry, it becomes problematic for me because of: 1. You need to create an image that goes far beyond what you would normally need for this method. 2. A larger image takes longer to load. Does anyone think that it is possible to create a box that has a repeated background to give the illusion that the box is large but would also behave like sliding doors and be flexible. If anyone has any thoughts on this matter I would love to hear them. |
|
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
I presume you're going to have a fixed width box in this case. I'm doing something similar on a new site. Forget sliding doors for content boxes. This method is only for fixed width boxes. Say your curved edges are 25px high. Create two images - one for the top and one for the bottom. Like so: ![]() ![]() Then your CSS for this box... Code:
Code:
Alternatively, you could add a non-semantic, empty div after #sidebar if you wanted. A fluid box - expandable across both the X and Y axes - would be a bit more tricky and you'd be required to add extra, non-semantic markup. Unless the content were very cleverly marked up and would remain quite constant across pages. |
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Oct 2004
Location: Chester
Posts: 364
|
Well following a tutorial in a book I got I actually created this: http://www.nicktoye.co.uk/bulletproof/chapterFive.htm The bottom two boxes have the same markup but varying content and they are fluid - that is the sliding doors method. At the moment on my own site - www.nicktoye.co.uk I do have the method you suggested, but then when I resize to 800*600 it breaks the layout, so that is why I was looking at a different solution. |
|
|
|
#4 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
I have that book too. Kind of a let down, I thought. Well, if you're going for fluid in both directions, and it needs to be large, I'd rather add extra markup than make huge sliding door images. Extra markup is easier on the bandwidth than huuuuge images. |
|
![]() |