Web browser hacks, Css hacks - ie, firefox, chrome, safri, Opera
CSS hacks take advantage of browser bugs for hiding CssRules from specific web browsers. Listed below are the hacks for major browsers like ie6, ie7, firefox2, firefox3, Google chrome, safari and opera.
Inline Hack for IE
* (star) can be used as the inline hack for both ie6 and ie7.
For Example:
Syntax: .selector{*property:value;}
.logo{*margin-left:10px;}
IE6 browser inline Hack
_ (underscore) can be using only for ie6
For Example:
Syntax: .selector{_property:value;}
.logo{_margin-left:10px;}
Firefox inline style
content:"\"/*" can be used for firefox only where IE cannot recognize it.
Internal Style
Use * html for ie6 and *+html hack for ie7
For Example:
Synatax: * html .selector{property:value;} , * + html .selector{property:value;}
* html .logo{margin-left:10px;} for ie6
* + html .logo{margin-left:20px;} for ie7
IE7 and Firefox browser Hack
Use html>body hack for ie7 and firefox.
For Example:
Syntax: html>body .selector{property:value;}
html>body .logo{margin-left:10px} will take only in ie7 and firefox
Mordern browser Hack or Firefox Hack
Use html>/**/body {} hack which will support only in both firefox2 and firefox3.
For Example:
Syntax: html>/**/body .selector{property:value;}
html>/**/body .logo{margin-left:10px} will take only in firefox.
Browser hack for Opera versions 9 and below
Use html:first-child {} for opera browser. Also you use
Syntax: @media all and (min-width:0px) {head~body .selector {property:value;}}
For Example:
@media all and (min-width:0px) {head~body .logo {margin-left:10px;}} only for opera
Firefox3 browser hack
Use html>/**/body .selector, x:-moz-any-link, x:default {property:value;} for firfox3 only.
For Example:
Syntax: html>/**/body .pro_yl, x:-moz-any-link, x:default {background:red;}
Google Chrome browser hack
Use body:nth-of-type(1) .elementOrClassName{property:value;} only for google chrome.
For Example:
body:nth-of-type(1) .logo{margin:20px;}
Safari browser hack
Use Syntax: body:first-of-type .elementOrClassName{property:value;}
Fox Example:
body:first-of-type .logo{margin-top:10px;} only for safari.
Hope this information will be useful for you. Please use the browser hacks in a proper manner. For example, you might know double margin bug in ie6. In such case you can use display inline which will render correctly by all the browsers instead of you using ie6 hack seperately.
Inline Hack for IE
* (star) can be used as the inline hack for both ie6 and ie7.
For Example:
Syntax: .selector{*property:value;}
.logo{*margin-left:10px;}
IE6 browser inline Hack
_ (underscore) can be using only for ie6
For Example:
Syntax: .selector{_property:value;}
.logo{_margin-left:10px;}
Firefox inline style
content:"\"/*" can be used for firefox only where IE cannot recognize it.
Internal Style
Use * html for ie6 and *+html hack for ie7
For Example:
Synatax: * html .selector{property:value;} , * + html .selector{property:value;}
* html .logo{margin-left:10px;} for ie6
* + html .logo{margin-left:20px;} for ie7
IE7 and Firefox browser Hack
Use html>body hack for ie7 and firefox.
For Example:
Syntax: html>body .selector{property:value;}
html>body .logo{margin-left:10px} will take only in ie7 and firefox
Mordern browser Hack or Firefox Hack
Use html>/**/body {} hack which will support only in both firefox2 and firefox3.
For Example:
Syntax: html>/**/body .selector{property:value;}
html>/**/body .logo{margin-left:10px} will take only in firefox.
Browser hack for Opera versions 9 and below
Use html:first-child {} for opera browser. Also you use
Syntax: @media all and (min-width:0px) {head~body .selector {property:value;}}
For Example:
@media all and (min-width:0px) {head~body .logo {margin-left:10px;}} only for opera
Firefox3 browser hack
Use html>/**/body .selector, x:-moz-any-link, x:default {property:value;} for firfox3 only.
For Example:
Syntax: html>/**/body .pro_yl, x:-moz-any-link, x:default {background:red;}
Google Chrome browser hack
Use body:nth-of-type(1) .elementOrClassName{property:value;} only for google chrome.
For Example:
body:nth-of-type(1) .logo{margin:20px;}
Safari browser hack
Use Syntax: body:first-of-type .elementOrClassName{property:value;}
Fox Example:
body:first-of-type .logo{margin-top:10px;} only for safari.
Hope this information will be useful for you. Please use the browser hacks in a proper manner. For example, you might know double margin bug in ie6. In such case you can use display inline which will render correctly by all the browsers instead of you using ie6 hack seperately.
Labels: css hacks, firefox 3.5, google chrome, ie, opera, safari, web browser hacks
78 Comments:
The hack for Chrome and Safari is now used to FF v.3.5.2, the new hack i used is:
@media screen and (-webkit-min-device-pixel-ratio:0)
{ #div { properties:value; } }
Thomaz Cia - thanks a lot! Just recently got complaints from FF 3.5 users, and now it's got fixed. Thanks!
Is there any hack only for Chrome or only for Safari not for both ot them, because I can't find solution that separate this browsers?
hi i need comman css for all browser using div tag
any hack for chrome should not detect by safari
Chrome :-
#mainNav li { margin:0 34px 0 0; }
@media screen and (-webkit-min-device-pixel-ratio:0) { /* hacked for chrome and safari */
#mainNav li { margin:0 26px 0 0; }
}
thanks but i use chrome hack it work but don't work in firefox
the hack for chrome also works in firefox. it overrides the hack meant for firefox. is there one that is only for chrome and only for firefox??
Use body:nth-of-type(1) .elementOrClassName{property:value;} only for google chrome.
Worked for me. Thankz...
cool post, like it. keep writing...
Hamid said: that is very usefull Hacks for all browsers
Inline Hack for IE doesn't work with ie8 :/
Thomaz Cia-Nice hack, Chrome and Safari was being bothersome this morning all of a sudden. Thanks
It is possible to target specific browsers in external .css file.
Example:
#middle {
font-size: .8em; //Opera all
* font-size: .7em; //IE6
//font-size: .7em; //IE 7, 8
}
/* FF only all*/
@-moz-document url-prefix() {
#middle {{font-size: .6em;}}
/* Safari all */
@media screen and (-webkit-min-device-pixel-ratio:0){
#middle{font-size: .6em;}}
!!! Keep order - and browsers never willl override code. Code is checked & proven many times. If browser doesn`t render code at once - you have to wait some time.
Professional webdesigner.
Mordern browser Hack or Firefox Hack
Use html>/**/body {} hack which will support only in both firefox2 and firefox3.
Unfortunately, this one affects IE8 too now
Opacity Hack:
#myElement {
opacity: .4; /* other browsers */
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=40); /* this works in IE6, IE7, and IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=40)"; /* this works in IE8 only */
}
This is great!!!! Thank you very very much!!!
Hack for ie8:
.test{
width:10px;
width:10px\0/; only for ie8
}
I've looking for this hack "width:10px\0/;" it helps me a lot thanks.
thanks for the post.
great info
I tried many of the Chrome specific hacks but the only one that worked for me (without affecting FF) was this one:
@media screen and (-webkit-min-device-pixel-ratio:0) { /* hacked for chrome and safari */
#mainNav li { margin:0 26px 0 0; }
}
It also affects Safari but, since they use the same rendering engine, it should work out just right. It did for me.
Thanks a lot......... Keep writing.......
Sorry but, I Think your Firefox hack is not working.
could you please mail me at (mkmishra19@gmail.com) with Firefox hack example
There is no fix for google chrome,just manage the css properly.
Chrome and firefox are almost same.
"just manage the css properly" - What does that mean exactly?
thanks.....
thanks but how to fix css in Google chrome?
U r ma time saver buddy... :)
all are good buddies
Thanks a lot for useful writing..
Not help much, but can fix little my blog, only I need code for IE, Firefox, Opera, Chrome. :D Thank.
i look for firefox 4+ hack please help
Thks, fixed CSS problem in google chrome
It seems to be very interesting about web browser hacks.U have made best post.Thanks for sharing !
web design company
this blog is very good,
thanks for solving my query.
thanks a lot ... you rock...
thanks
Good Blog..
wonderfull list of hacks. thx
Awesome Hacks site...:)
In regards to CSS, I am developing a website on a MAC OS operating system and when I view Chrome it looks fine, but when I view it on a PC via Chrome the CSS is off, any suggestions?
nice blog
Thanks for your post, you're a life saver! I'm one of the few people in my office who's really good with CSS, and everyone thinks I can solve everything lol. BTW, if anyone is still having problems targeting FireFox, I found the following hack to be useful:
@-moz-document url-prefix()
{
.editSelfUsernameEmail
{
text-align: right;
}
}
"Browser hack for Opera versions 9 and below
Use html:first-child {} for opera browser. Also you use
Syntax: @media all and (min-width:0px) {head~body .selector {property:value;}}
For Example:
@media all and (min-width:0px) {head~body .logo {margin-left:10px;}} only for opera"
toda essa parte o safari reconheçe e fica dando comflito com o opera.
There is obviously a lot to know about this. I think you made some good points in Features also
This comment has been removed by a blog administrator.
that's is very helpful thank you so much
Many thanks for this helpful and extensive collection
Very nice read. Thank you very much.
Webdesign Agentur Hamburg
đồng tâm
game mu
cho thuê nhà trọ
cho thuê phòng trọ
nhac san cuc manh
số điện thoại tư vấn pháp luật miễn phí
văn phòng luật
tổng đài tư vấn pháp luật
dịch vụ thành lập công ty trọn gói
lý thuyết trò chơi trong kinh tế học
đức phật và nàng audio
hồ sơ mật dinh độc lập audio
đừng hoang tưởng về biển lớn ebook
chiến thắng trò chơi cuộc sống ebook
bước nhảy lượng tử
ngồi khóc trên cây audio
truy tìm ký ức audio
mặt dày tâm đen audio
thế giới như tôi thấy ebook
“Ghét quá đi, phu quân, chàng thật giống đại sắc lang.” Ân Tố Tố mắng yêu hắn.
Lưu Phong trong lúc nhất thời xém chút nữa đã lộ nguyên hình, hắn cũng không muốn phá hủy đi hình tượng trong lòng nàng, đang muốn sửa chữa thì Ân Tố Tố nói tiếp: “Phu quân, cô cô còn nói nam nhân ai cũng như ai, nữ nhân chúng ta nhất định phải khổ luyện hai tuyệt kỹ, đó là nấu cơm và chuyện …kia.”
Cao thủ thật. Ân quý phi quả nhiên là cao thủ, chinh phục nam nhân phải vừa chinh phục trái tim, vừa chinh phục tiểu đệ đệ của nam nhân đó. Đó mới chính là Vương đạo.
Uống xong chén thuốc, Lưu Phong lập tức cáo từ. Ân Tố Tố có chút quyến luyến, không muốn xa hắn, cầm tay hắn nói: “Phu quân, chàng phải thường xuyên đến ghé thăm thiếp nhé. Nhớ kỹ không được ra ngoài câu dẫn nữ nhân khác đó.”
Lưu Phong gật đầu, mỉm cười nói: “Quai lão bà, ta tuyệt đối sẽ không câu dẫn nữ nhân khác.” Nói là thế nhưng trong lòng lại nghĩ, mình không câu dẫn đàn bà khác nhưng nếu như nữ nhân quyến rũ mình thì hì hì…xem như không tính.
”Quai lão bà, nếu nàng lo lắng như vậy thì theo ta về Phượng viên sống đi.” Chưa kết hôn nhưng chung sống với nhau tại kiếp trước cũng không có gì là lạ lắm, thậm chí ngay tại trường cao trung cũng đã có hiện tượng này.
Ân Tố Tố lắc đầu: “Phu quân, cha nói cô cô đã thuyết phục hoàng thượng tổ chức hôn lễ cho chúng ta, trước khi thành hôn không thể ở chung được.”
Many thanks intended for unveiling an extremely great and also helpful web site.
Customer Support Page
Detecvision is one of the best and professional web development companies in India providing best and Affordable web development services in Delhi, India.
The article is so informative. This is more helpful for our
software testing training and placement
selenium testing training in chennai. Thanks for sharing
Nice article.
For AWS Training in bangalore,visit:
AWS Training in bangalore
Very interesting, good job and thanks for sharing such a good blog. your article is so convincing that I never stop myself to say something about it. You’re doing a great job. Keep it up…
Softgen Infotech is the Best Oracle Training institute located in BTM Layout, Bangalore providing quality training with Realtime Trainers and 100% Job Assistance.
Check Best ecommerce development company
Best Seo Services in Chennai, India
Top Digital Marketing services for your online Business
top web design company in Chennai
top-notch mobile app development company in chennai
Best UI/UX Designing services
eCommerce website design in chennai
web development company India
Mobile app development company
https://www.hakunamatatatech.com/our-services/enterprise-mobile-app-development/
i have been following this website blog for the past month. i really found this website was helped me a lot and every thing which was shared here was so informative and useful. again once i appreciate their effort they are making and keep going on.
Digital Marketing Consultant in Chennai
Freelance Digital Marketing Consultant
Thanks for sharing such a great blog
hadoop training in bangalore | hadoop online training
iot training in bangalore | iot online training
devops training in banaglore | devops online training
Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging. After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.
AWS Online Training
Online AWS Certification Training
This comment has been removed by the author.
This is most informative and also this post most user-friendly and super navigation to all posts.
TechData Solution
Data Science Course In Pune
thanks for sharing this information.
techitop
pdfdrive
jio rockers telugu
www.mpl.live
filmy4wap.xyz
mmorpg oyunlar
instagram takipçi satın al
tiktok jeton hilesi
tiktok jeton hilesi
antalya saç ekimi
referans kimliği nedir
instagram takipçi satın al
mt2 pvp serverler
instagram takipçi satın al
smm panel
SMM PANEL
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
Www.beyazesyateknikservisi.com.tr
servis
Tiktok Jeton Hilesi İndir
مهندس افران بالمدينة المنورة
فني اصلاح افران
Good text Write good content success. Thank you
bonus veren siteler
betmatik
kralbet
mobil ödeme bahis
slot siteleri
tipobet
poker siteleri
betpark
sms onay
VOİ0O
betmatik
kralbet
betpark
mobil ödeme bahis
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
2M5Q
kocaeli
konya
kuşadası
kütahya
malatya
BHD6R
manisa
maraş
mardin
marmaris
mersin
LHB7RK
erzurum
kuşadası
ümraniye
beşiktaş
ataşehir
34D
beşiktaş
eyüpsultan
gebze
kaş
tekirdağ
BHN3Y7
ağrı
aksaray
amasya
antep
ardahan
LA3ZL
kaş
beykoz
bahçeşehir
pendik
tekirdağ
TQ47
دهان سيليكات
عازل اسمنتي للسطح
https://trainingwithinindustry.blogspot.com/2009/04/job-breakdown-sheet-vs-work-instruction.html?sc=1726815526392#c8896387777301264583
Post a Comment
Subscribe to Post Comments [Atom]
<< Home