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.

CSS Forum


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



Reply
Old 07-06-2009, 01:46 PM Content area
Junior Talker

Posts: 3
Name: Michal Bugno
Trades: 0
Hello,

I am trying to make the content area change sizes to fit the content. Unfortunatly when I try to change the size it doesn't work. Here are some images that might be helpful.
Shadow:

Sliced:

Streched:
michalbugno2006 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2009, 04:01 PM Re: Content area
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I assume you mean you want it to stretch vertically ???
Let's see the code or a URL. My bet is you haven't CLEARED your floats
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 06:10 PM Re: Content area
Junior Talker

Posts: 3
Name: Michal Bugno
Trades: 0
Yes vertically, I have no idea what clear your floats means. Here is a link: http://driverlawfirm.com/beta/draft5.htm
michalbugno2006 is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 09:46 PM Re: Content area
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
If you use floats, you have to clear them - from our stickies:
http://www.webmaster-talk.com/css-fo...you-clear.html

Ok, I see several things:
1 - get rid of the absolute positioning, you don't need it and you're removing that box from the document flow.
2 - Your "txt-Raleigh" is not inside the box I assume you want it in, so of course it's going to appear to spill out of it. Given that the text is also positioned absolutely, it is also removed from the document flow and will not 'interact' with anything else on the page, including the box it should be in. It sort of floats freely above it.

Use the normal document flow, along with floats, and you'll get better results.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 10:00 PM Re: Content area
Junior Talker

Posts: 3
Name: Michal Bugno
Trades: 0
The content are is an image and the problem is the image is repeating rather then streching. The text is just there from FW I just want to be able to in DW drag the box (witch is an image) and have DW repeat the middle slice and make the box larger.
michalbugno2006 is offline
Reply With Quote
View Public Profile
 
Old 07-07-2009, 01:27 PM Re: Content area
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
But it's not going to repeat it or stretch when you're using position:absolute for the box and the text to go inside it. You really don't need to put the entire box in as an image anyway, all you need is a horizontal piece of it, set it as a vertically repeating background on the div, and then you can put the text inside it - but not positioned. Then the box will stretch vertically with the text contents.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Content area
 

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.17435 seconds with 12 queries