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 08-29-2008, 10:18 AM Percentage Widths
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
...Are starting to annoy me, but have to be done for the minority of people that use small screen sizes

[INSERT URL HERE] - problem fixed

The left div that says 'testing' is the one i'm currently having trouble with.

I've only done the top curve in percentages at the moment. I stopped there because I would like to sort out my problem before going onto the middle and bottom part of that div.

At screen resolution width 1280, the div looks fine, however, if you resize your browser width to a few pixels less than that, the divs breaks. Why is this?

[INSERT URL HERE] - Problem fixed - The stylesheet

#left is the parent div
#l-TL, #l-TR and #l-T are the divs for the top curve of the left div

Thanks for any assistance
__________________

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

Last edited by Gilligan; 08-30-2008 at 10:49 AM..
Gilligan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-29-2008, 11:13 AM Re: Percentage Widths
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Hi Stefan

I dont know if this is whats causing it but if you add up the percentage widths of the divs that make up the left box I think they add upto more than 100% (which I dont think they should)

Don't know if thats it but thought I would mention it.
__________________

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


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


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 08-29-2008, 12:13 PM Re: Percentage Widths
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
No they don't, it adds up to 100%

#left is the parent div, which is 24% (300px on 1280px wide resolution).

left curve = 15px
right curve = 18px

15px + 18px = 33px (both curves together)

33px = 11% of 300px (both curves overall percentage)

100% - 11% = 89% (remaining percentage)
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 08-29-2008, 12:20 PM Re: Percentage Widths
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Aaaaah, by typing that post, it gave me the solution, i had set the widths for the curves in pixels (fixed widths) whereas they should have been in percentages also
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Percentage Widths
 

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