[SOLVED] CSS3: box-shadow triggers scrollbar
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexThemes
Author Message
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Sat Aug 28, 2010 2:29 pm
Reply with quote

I'm creating a new menu but i have an issue.
When i add the box-shadow it adds 7px to the right and then it creates a horizontal scrollbar.
I've already tried overflow:hidden but that fails.

preview of my HTML5+CSS3 menu

You have any solution?


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS


Last edited by DJ Maze on Sat Aug 28, 2010 3:21 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website Yahoo Messenger
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: CSS3: box-shadow triggers scrollbar. any fix?
Posted: Sat Aug 28, 2010 2:55 pm
Reply with quote

Solved it myself!
My HTML5+CSS3 menu (works in Chrome, Firefox, Opera and Safari)

So what you think of this menu?


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Sat Aug 28, 2010 11:49 pm
Reply with quote

Cool, but not really for irl use I think (who would like to read it tilting the head left all the time). Using images...icons instead of text might give a better result. And more padding for each item.

Cool, nevertheless (and I mean the idea of having the real clickable area).


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
BrokenCrust
500+ Posts Club


Joined: Sep 06, 2004
Posts: 503

PostPost subject: Re: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Wed Sep 08, 2010 12:12 pm
Reply with quote

I've been playing with CSS3+HTML5 for a while and there is big scope for nice looking sites with little effort or images, providing of course that none of your visitors use IE. Because of that reason it was just a nice experiment and I didn't implement it and instead switched to minimalist x-browser approach. It sucks that Microsoft drags everyone down to its level but perhaps when their market share falls it will become viable before the release of IE9.

BrokenCrust's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.17/5.0.91/5.2.16/9.2.1
Back to top
View user's profile
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Wed Sep 08, 2010 10:46 pm
Reply with quote

Why a minimal approach?
Why not provide the cool people a cool layout and the noobs an IE layout with filters?
If visitors care less about a good browser, they do it for your website as well, until.... They see your website in a real browser Very Happy


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Thu Sep 09, 2010 6:45 am
Reply with quote

DJ Maze wrote:
Why not provide the cool people a cool layout and the noobs an IE layout with filters?

Is this something that poodle could provide? The fallback for IE I mean, not CSS3+HTML5 for IE (although there might be a market for that Wink )

Or have I misunderstood the purpose of poodle?

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
BrokenCrust
500+ Posts Club


Joined: Sep 06, 2004
Posts: 503

PostPost subject: Re: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Thu Sep 09, 2010 9:05 am
Reply with quote

DJ Maze wrote:
Why a minimal approach?
Why not provide the cool people a cool layout and the noobs an IE layout with filters?
If visitors care less about a good browser, they do it for your website as well, until.... They see your website in a real browser Very Happy

I suppose this depends a bit on your visitors, but I still think that it is difficult to tell the average visitor "sorry friend, you have IE so are a noob and must look at a badly formatted site or upgrade to something better". It's a world with lots of choices and people won't stand for that stuff. In five years time I would expect to have people moaning if IE6 doesn't work correctly, although maybe then I will tell them that.

Right now it's a lot of work to use CSS3 you must cover many variations - rounds corners is an example. To give users in IE nice aa corners with transparency, a border and some shading I must use images, nothing else will do. If I am making images for them, then it doesn't help me that I can make this effect in CSS for the other browsers? I may as well be minimal and use only the one method for all. That way I don't have to code exceptions or have a massive CSS stuffed full of various commands that do the same thing but only on one browser each. Why does FF have -moz on every CSS3 feature - this isn't helpful. Grrr.

So I can make a fantastic theme in FF, with no images or JavaScript that I really like, then spend the next months butchering it to make the other browsers display sort of the same thing, or I can save time, anger and get a better end result by starting out to cover the top five browsers and take a minimal design approach.

Or as you say I can accept that my site looks good in FF and sort of OK in the others and bad in IE. For a site where no-one is visiting much (BrokenCrust for example) then maybe this is OK. On that sort of site 80% of visitors will have FF and almost none IE. But in a "real" site then 50% have IE and 20% IE6 and they don't know IT well or are at work so can't change it, so can I really say, for you it is too bad. Do they accept that or go so away?

Also it doesn't help that DF isn't very CSS friendly with too many classes across the core and modules and many styles embedded and more tables that the table section at the IKEA table superstore. Really, getting a common look can make you weep in your sleep.


BrokenCrust's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.17/5.0.91/5.2.16/9.2.1
Back to top
View user's profile
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Thu Sep 09, 2010 7:24 pm
Reply with quote

That's an approach you can take.

I just show the round borders with an alpha to any browser except IE<9.
Why? Well,,,, the visitor doesn't see that the corners are square instead of round.
Is it a bad thing that he doesn't know that?
Does he really care when you tell him?

For example look on this website to the "Dragonfly" theme.
All side blocks have round borders, except in IE.
Is that a bad approach?

It's not only IE. What if someone is still using Firefox 2 or Safari 1?


Conclusion is: either choose a minimal design approach or use a graceful design approach.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
BrokenCrust
500+ Posts Club


Joined: Sep 06, 2004
Posts: 503

PostPost subject: Re: [SOLVED] CSS3: box-shadow triggers scrollbar
Posted: Fri Sep 10, 2010 8:19 am
Reply with quote

No it's not bad, and it's what I do as well for rounded corners because the difference isn't that much in most cases, but if you have rounded corners, gradients, shadow, reflection, rotation, text shadow etc, then in IE it is not at all the same theme.

You are right that you must choose; but I think you must also fit your audience. A site about Windows 7 probably needs to pay more attention to IE than a community site, but they must pay more attention to all browsers than a designers home page maybe.

If you want each user to have a similar experience and also you want to keep that WC3 CSS button, then you must not think too much about css3 stuff for your site yet.


BrokenCrust's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.17/5.0.91/5.2.16/9.2.1
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexThemes All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.4048 seconds with 16 DB Queries in 0.0344 seconds
Memory Usage: 2.95 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy