Darksat IT Security Forums
January 22, 2026, 06:40:06 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
 
  Home Help Search Gallery Links Staff List Login Register  

Need advice

Pages: [1] 2 3
  Print  
Author Topic: Need advice  (Read 11436 times)
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« on: August 06, 2007, 07:07:10 pm »

Sorry, where is my mind.
Firefox/Mozilla Child of Div hack

This is a rough example of how this hack works.
Code:
#leftMenu>#topVerticalMenu {margin-left:30px;} /* Firefox CSS hack */ 

This rule is saying: apply this style (margin-left:30px;) to any element that is inside the #topVerticalMenu ID if the #topVerticalMenu ID itself, is inside the #leftMenu ID.
This is a little confusing but don’t worry about it - all you need to know is that IE can’t understand this CSS rule so IE just ignores it. But since FireFox and Mozilla do understand it, the CSS is applied in those browsers.
In other words, the CSS rule: ‘margin-left:30px’ - will only have effect in FireFox and Mozilla, not in IE, because IE doesn’t understand it.
Another point about this CSS hack - CSS rules are applied by the browser from the top - down, so CSS rules that appear last in your stylesheet will be applied last, overriding previously stated rules. That’s why the ‘child of div’ hack has to be applied at the bottom of your CSS file.

I will do a quck CSS hack for your site when I get a chance if its to technical for you.
« Last Edit: August 06, 2007, 07:35:36 pm by Darksat » Report Spam   Logged

Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy
Page created in 0.041 seconds with 9 queries.