Posted in Quick Tips by Kostas Mavropalias.
If you want to align your site in the center of the screen (horizontally), you just need to follow these two quick steps.
First, add this css code:
body {
text-align: center;
}
#content {
text-align: left;
margin: 0 auto;
}
Then, create a <div> in your <body> with the id ‘content’, and put the actual content inside.
<div id="content">content</div>
Voila, your <div> and your whole page are centre alligned!
Posted in Quick Tips by Kostas Mavropalias.
There are various ways in which you can disable the right click menu in Flash movies. The simplest one, is via a simple piece of html code. You just have to add the parameter menu=false:
<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ width=”400″ height=”400″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″>
<param name=”quality” value=”high” />
<param name=”menu” value=”false” />
<param name=”src” value=”movie.swf” />
<embed type=”application/x-shockwave-flash” width=”400″ height=”400″ src=”movie.swf” menu=”false” quality=”high”></embed>
</object>
Keep in mind, that there is no way to totally disable the right click menu. Adobe gives us some flexibility on removing the unnecessary items, but forces us to keep the ‘Settings’ and ‘About Adobe Flash player’ links in all .swf files.