OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Define Top Margin in CSS - How?
This page's ID:
24099
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Is that the attribute as used on the body tag? then you use the following CSS: [code]html,body{ margin-top: 0; padding-top: 0; }[/code] However, more often you want to eliminate not only the top margin. [code]html,body{ margin: 0; padding: 0; }[/code] Oh, script shouldn't be written into attributes in the HTML either. That's what you have the SCRIPT tag for. [code]document.oncontextmenu=function(){return false;}[/code] However, destroying a main UI feature such as right click is a bad thing. Preventing the context menu from appearing in any way is worse. There is nothing you prevent your user from doing by having a context menu not pop up on right click. However, you destroy some very valuable UI features for the user. For example, right click menu contain a lot of features: navigation (back/forward/stop/reload), page info (including save page and view source, which I guess is what you want to block), print, select all, bookmark, copy/paste, search web etc. A little depending on browser used and extensions installed, of course. In Mozilla and Opera, you may also have mouse gestures or rockers that use right click. None of these features is particularly hard to get at even without right click, but right click may be the way the user is most comfortable with. As a user, I don't visit pages anew if they stop me from using right click. Luckily for me, both browsers that I use most often allow me to disallow pages overriding these... -- var Liorean = { prototype: [sigrotate]JavaScript|XML|XHTML|HTML|CSS|ProgrammingTheory[/sigrotate]Guru.prototype, abode: "[sigrotate][url]http://liorean.web-graphics.com/[/url]|[url]http://codingforums.com/[/url]|[url]http://web-graphics.com/[/url][/sigrotate]", profile: "[url]http://codingforums.com/member.php?u=5798[/url]"}; [small](Edited by [internallink=23174]liorean[/internallink] on 11-18-2004 22:15)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »