Follow me on Twitter RSS FEED
Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Regular expression for html tags.

Posted in
Regular expression to select tags in a html document.
@"<[/]?(font|p|xml|del|ins|[ovwxp]:\w+)[^>]*?>"
By this way we can remove unwanted tags using Regex.Replace() method.

Creating Transparant(Glassy) Layer For Web Page

Posted in
Lets start creating Glassy Layer.

Step1:
  • Fire Photoshop CS2 and above
  • Double click on the layer to unlock it
  • Erase the white using Eraser tool
  • You ll see black and white checks (transparent area)
  • now add any image or graphics
  • By selecting the item you added previously change the opacity to 45% range
  • after that File->Save for Web & Device...
  • Select the type as png-24 which is found below presets and save it
Now the image file is created.
Step 2:
  • Now in the HTML page use the image created above any other images.
Now this is called UI Experience.

Static background image for web page

Posted in
Many websites have there background image as static even when scroll, So how they do that?
Its just a one piece of CSS code..

background-attachment:fixed;

Even when you scroll this blog the background image is still. Well many times this is very cool but not all times.