Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-01-2008, 03:21 PM
Member
 
Join Date: Oct 2007
Posts: 63
Default Css Help Please

Hi all,

OK so I am doing a redesign of my site and one element is where I have my content in a rounded box image.

The way I have done it is to have three div, the first is topOfContainer where I have the image of the rounded top. Then the bodyOfContainer where the content is. And bottomOfContainer where it has the image of the bottom.

The problem is the bodyOfContainer, I have to specify how many pixels down it is (about 700 a think). This isn't to much of a problem but it is when you resize the text.

The way I thought to do it would be to tile the image in the y direction then put the size 100% but this doesn't work.

Any help would be greatly appreciated.

link - http://www.griffinwebdesign.co.uk/GriffinNew/index.html

Regards Andy
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 18-01-2008, 03:34 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 16,889
Default

Using padding with whatever you fill it with will make it expand to the size needed. Enter some text in the centre div and then add padding to the css.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 18-01-2008, 03:36 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 16,889
Default

I might be wrong but I had quick look at your code and I couldn't see a container div?
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 18-01-2008, 03:37 PM
tommylogic's Avatar
← <squeeze />
 
Join Date: Apr 2007
Location: Virtually Everywhere
Gender: Male
Posts: 4,511
Default

Stu Nicholls over at CSSPlay has several solutions for rounded corners using no images for fixed or liquid layouts based on the box model. I prefer the snazzy mehtod.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 18-01-2008, 03:47 PM
Member
 
Join Date: Oct 2007
Posts: 63
Default

So what do I need to add then Toon, cheers tommy but I need to keep the images so it looks exactly like my photoshop mockup and how it currently look now.

Super fast reply then btw :)
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 18-01-2008, 03:50 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 16,889
Default

Do you have a container div that everything is in?
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 18-01-2008, 03:56 PM
Member
 
Join Date: Oct 2007
Posts: 63
Default

No toon it is set as a header with the logo and nav, then the content which the container would be the bodyOfContainer which has leftContent and rightContent. Then the footer. So its basically split into three. The bodyOfContainer of container has an image that fits the whole x length with the y lenght tiled which I have set as a pixel amount but doing this means it can't change size. if if use % in the lenght it doesnt work.

Any more questions just ask.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 18-01-2008, 03:59 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 16,889
Default

That's why you can't expand the text. When you say 100% it is a % of the container div and everything has to expand together
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 18-01-2008, 04:07 PM
Member
 
Join Date: Oct 2007
Posts: 63
Default

So what should do then.

send me the code i'm lazy ;)
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #10 (permalink)  
Old 18-01-2008, 04:12 PM
tommylogic's Avatar
← <squeeze />
 
Join Date: Apr 2007
Location: Virtually Everywhere
Gender: Male
Posts: 4,511
Default

if I'm seeing this correctly (not sure of your slicing)... you should use a main wrapper for the entire page, followed by header, innerwrapper (add your content left and right here), and footer.

You should slice so your corner images to go in the innerwrapper (for the top corners) and footer, at its top (for the bottom corners).

This method allows your innerwrapper content to expand as big as it needs to while maintaining your borders and corners at perfect allignment
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

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


All times are GMT. The time now is 12:00 AM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5