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.

Website Design Forum


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



Freelance Jobs

Reply
Old 02-12-2008, 03:14 AM DIV Resize
Average Talker

Posts: 20
Trades: 0
Is there any way to bring in the side of a DIV area to trim the content within it?

OK, so I am working on a hosted cart. The default mini shopping cart has too much info and wastes alot of space. Som1 suggest I use CSS to setp up a DIV section, place the code minicart code within the DIV, set the overflow as hidden then resize the DIV to trim the mini cart. This works great vertically but is NO good horizontally. Lets say this is the mini cart:

Your cart has X items
It cost X Dollars
unwanted info here
more unwanted
more unwanted


the DIV fix makes it look like this:

Your cart has X items


I want to reduce the DIV table to only display X is there any way to bring in each side around and object? When I simply reduce the width I get a result that looks like this:

Your ca

ANY SUGGESTIONS????
tahj1024 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-12-2008, 05:15 AM Re: DIV Resize
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Don't set overflow as hidden.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-12-2008, 06:18 AM Re: DIV Resize
Average Talker

Posts: 20
Trades: 0
I think you missed the point. Maybe I didn't explain well. I want to show and item but not the entire item. I want to clip the bottom and bring in the points to ONLY show a section of the top middle. Lets say you avatar / icon is this item. I want to use the Div to trim it but ONLY show the big P
tahj1024 is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 08:42 AM Re: DIV Resize
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
You can't do that. And there is no point in that method anyway. To hide the stuff you don't want visitors to see (unless styles are off) use display: none (to remove it from the entire structure) or visibility: hidden. Hide the text using span.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Reply     « Reply to DIV Resize
 

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