Head scratcher....

This is a discussion on "Head scratcher...." within the Web Page Design section. This forum, and the thread "Head scratcher.... are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 2nd, 2006, 14:13
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Head scratcher....

want to make a box on a CSS based website that uses images for it's background.

Simple enough! you might say. And normally you'd be right but I want to do something a little more tricky than that.

I want a box with rounded corners so basically a box in three parts.
  1. A top with rounded corners.
  2. A middle section that will repeat as the content expands the box.
  3. A bottom with rounded corners.
I've got an idea of how to get this to work but I wanna run it past you guys cos I've been having some problems.

Here goes:

Code: Select all
    <div id="box">
        <div id="boxtop">
        </div>
        <div id="boxcontent">
            <p>
            Blah blah blah...
            </p>
        </div>
        <div id="boxbottom">
        </div>
    </div>
In the CSS I was gonna make #box be the exact width of the graphics with no padding and no margins. Then.. I was gonna make all divs contained within #box have a 100% width and float left with no margins and background of the co-responding images...#boxtop and #boxbottom would have set height (the exact height of the boxtop and boxbottom images.)

Do you think this would work?

Let me know if you can see any problems with this....
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote

  #2 (permalink)  
Old Jun 2nd, 2006, 14:23
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Head scratcher....

That'll work, but having 100% widths and floats is overkill, do it all minus those two bits and you should be good.

Oh, will this box ever expand in width? If so, your method above won't work, but this would: http://www.alistapart.com/articles/customcorners/
Reply With Quote
  #3 (permalink)  
Old Jun 2nd, 2006, 14:26
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Head scratcher....

Quote:
Originally Posted by herkalees
That'll work, but having 100% widths and floats is overkill, do it all minus those two bits and you should be good.

Oh, will this box ever expand in width? If so, your method above won't work, but this would: http://www.alistapart.com/articles/customcorners/
So what do you suggest? Set widths and no floats?

It is never going to expand in width, no. Only in length.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #4 (permalink)  
Old Jun 2nd, 2006, 14:39
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Head scratcher....

Quote:
Originally Posted by minute44
So what do you suggest? Set widths and no floats?

It is never going to expand in width, no. Only in length.
Set a width only on the outer-most div, the rest will expand 100% by default.
Reply With Quote
  #5 (permalink)  
Old Jun 2nd, 2006, 14:50
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Head scratcher....

Huh... you learn something new every day...

Nice one mate.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #6 (permalink)  
Old Jun 2nd, 2006, 14:56
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jpmitchell Send a message via Skype™ to jpmitchell
Re: Head scratcher....

Another good reference is Nifty Cube (formerly Nifty corners) and would do a similar thing. Make sure you watch the width and padding here too.
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Reply With Quote
Reply

Tags
head, scratcher

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
I seem to have gotten in over my head. GregoryV Starting Out 10 May 28th, 2007 00:53
No </HEAD> tag? cj550 Web Page Design 4 May 11th, 2007 21:07
head message csa Web Page Design 1 Jan 17th, 2006 12:30
I am in way over my head!!! Can someone please help!? blh9901 Introduce Yourself 15 Aug 15th, 2005 21:21
Over my head moragskene1@aol.com Introduce Yourself 8 Nov 29th, 2004 07:20


All times are GMT. The time now is 22:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43