By default when a drop down menu displayed over a swf file it will not be visible in the page. To make it visible and accessible to the user, just put <param name=”wmode” value=”transparent” /> inside the <object> tag and add the property wmode=”transparent” in <embed> tag.
Category: HTML
Permanent link to this article: https://blog.openshell.in/2011/01/displaying-drop-down-menu-over-a-swf-file/
Jan 27
How to Use External Font
Using External Font is very Easy 1.Download the font 2.If the Downloaded font is in ttf format convert it into eot format by a tool which you have to search and download or use this online convertor http://www.kirsle.net/wizards/ttf2eot.cgi 3.If the Downloaded file is in otf format convert it into ttf format and then convert …
Permanent link to this article: https://blog.openshell.in/2011/01/how-to-use-external-font/
Jan 05
CSS Tricks (Minimum Width for a Page)
Minimum Width for a Page A very handy CSS command that exists is the min-width command, whereby you can specify a minimum width for any element. This can be particularly useful for specifying a minimum width for a page. Unfortunately, IE doesn’t understand this command, so we’ll need to come up with a new way …
Permanent link to this article: https://blog.openshell.in/2011/01/css-tricks-minimum-width-for-a-page/
Jan 03
CSS trick (CSS RESET BY ERIC MEYER)
CSS RESET This piece of CSS code resets all the browser default styles preventing any browser inconsistencies in your CSS styles. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, …
Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-css-reset-by-eric-meyer/
Jan 03
CSS trick (Two classes together)
Two classes together Usually attributes are assigned just one class, but this doesn’t mean that that’s all you’re allowed. In reality, you can assign as many classes as you like! For example: <p class=”text side”></p> Using these two classes together (separated by a space, not with a comma) means that the paragraph calls up the …
Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-two-classes-together/
Jan 03
CSS trick ( CSS box model hack alternative)
CSS box model hack alternative The box model hack is used to fix a rendering problem in pre-IE 6 browsers on PC, where by the border and padding are included in the width of an element, as opposed to added on. For example, when specifying the dimensions of a container you might use the following CSS rule: #box { width: …
Permanent link to this article: https://blog.openshell.in/2011/01/css-trick-css-box-model-hack-alternative/
Dec 29
MySQL Subquery Optimization
Never use a subquery inside a WHERE field IN(…) the SQL query. It will slow down the process. Slow: SELECT * FORM table1 WHERE field1 IN (SELECT field2 FROM table2 GROUP BY field1) Instead of using a subquery inside an IN(…), use INNER JOIN query. It will speed up the process, but in IN(…) query …
Permanent link to this article: https://blog.openshell.in/2010/12/mysql-subquery-optimization/
Dec 28
Enable .htaccess in Apache2
At first You should define, mod_rewrite is a part of Apache server that can rewrite requested urls on the fly. To enable in Ubuntu, you just need to write this command in terminal sudo a2enmod rewrite Then edit /etc/apache2/sites-available/default Find the following Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all and change …
Permanent link to this article: https://blog.openshell.in/2010/12/enable-htaccess-in-apache2/
Dec 17
How to avoid Conflict in jQuery
Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery’s case, $ is just an alias for jQuery, so all functionality is available without using $. If we need to use another JavaScript library alongside jQuery, we can return control of $ back to the other library with …
Permanent link to this article: https://blog.openshell.in/2010/12/how-to-avoid-conflict-in-jquery/
Dec 13
404 Page on a Static Site
Here’s a very quick, but very useful trick. You can catch 404 errors (page not found) on a static site and serve up a custom 404 page with a one-liner in your .htaccess file: ErrorDocument 404 /404.php The “/404.php” part is the path to whatever file you want to serve up as the error page. …
Permanent link to this article: https://blog.openshell.in/2010/12/404-page-on-a-static-site/