Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

HTML/XHTML Character Entities

Posted by Muhammad Shiraz Kamboh Monday, 4 June 2012 0 comments
Here is a set of tables containing the 252 allowed entities in HTML 4 and XHTML 1.0, as described in section 24 of the official HTML 4 specifications, published by the W3C. I have divided them into my own, hopefully logical, categories:

Each table has five columns. The first column contains the entity reference, in the form &entity_name;, that is, an ampersand, the entity name, and then a semi colon. The second column displays how that entity appears in your browser. The proper character will only appear if you have a font that can display it. The third column contains the number reference for the same character in the form &#number;, that is, an ampersand, a hash symbol (which signals that a number reference is coming), the character's number, and then a semi colon. The fourth column shows how the number reference displays in your browser. Again, the proper character is only displayed if the default font selected in your browser preferences contains such a character.
The fifth column contains a description of the character, and an occasional note. You can either hover over the note link to see the note, or click it to go the notes page, which will open in a separate window.
There are many ways to order character entities. You can order them alphabetically, by number, or by Unicode collection, to mention just a few methods. I find all of these rather arbitrary. So, I have taken the liberty of classifying them into what I consider logical categories, and sometimes subcategories, and then by alphabetical order. I hope you find it useful. And don't forget, you can always use your browser's Find command to find a particular word or phrase within this page.

About Full Source of HTML - Clean Code

Posted by Muhammad Shiraz Kamboh 0 comments
Welcome to HTML Source! Come in, look around. Don’t be overwhelmed by the ample bounty of HTML tutorials available, each packed with in-depth expert advice, full diagrams and miraculous wit. Yep, I’m blowing my own trumpet here. I hope you know what I mean by that...

Have a look in the navigation bar on the right there to begin your journey. If you are just starting your illustrious HTML career, have a leaf through the two “Starting Off” sections. If you want more specific tutorials check out the in-depth “Lessons” on each aspect of HTML and CSS, and if you’re well-versed in the arts of web development you should read the “Advanced” stuff. You can also get technical with the “Scripting” tutorials. Finally, the HTML Reference charts and whatnot are in a table further down this page. If you want to find a certain tutorial fast, use the Search box at the top there.

HTML & CSS Color Codes Lab

Posted by Muhammad Shiraz Kamboh 0 comments
#f0f8ff: alice blue
#faebd7: antique white
#ffefdb: antique white 1
#eedfcc: antique white 2
#cdc0b0: antique white 3
#8b8378: antique white 4
#32bfc1: aquamarine
#7fffd4: aquamarine 1
#76eec6: aquamarine 2
#66cdaa: aquamarine 3
#458b74: aquamarine 4 
#f0ffff: azure
#e0cdcd: azure 1
#e0eeee: azure 2
#c1cdcd: azure 3
#838b8b: azure 4
#f5f5dc: beige
#ffe4c4: bisque 1
#eed5b7: bisque 2
#cdb79e: bisque 3
#8b7d6b: bisque 4
#ffe4c4: blanched almond
#0000ff: blue
#0000ee: blue 1
#0000cd: blue 2
#00008b: blue 3
#8a2be2: blue-violet
#a52a2a: brown
#ff4040: brown 1
#ee3b3b: brown 2
#cd3333: brown 3
#8b2323: brown 4
#deb887: burlywood
#ffd39b: burlywood 2
#cdaa7d: burlywood 3
#8b7355: burlywood 4
#5f929e: cadet blue
#98f5ff: cadet blue 1
#8ee5ee: cadet blue 2
#7ac5cd: cadet blue 3
#53868b: cadet blue 4
#7fff00: chartreuse 1
#76ee00: chartreuse 2
#66cd00: chartreuse 3
#458b00: chartreuse 4
#ff7256: coral 1
#ee6a50: coral 2
#cd5b45: coral 3
#8b3e2f: coral 4
#222298: cornflower blue
#fff8dc: cornsilk 1
#eee8cd: cornsilk 2
#cdc8b1: cornsilk 3
#8b8878: cornsilk 4
#00ffff: cyan 1
#00eeee: cyan 2
#00cdcd: cyan 3
#008b8b: cyan 4
#bdb76b: dark
#b8860b: dark goldenrod
#ffb90f: dark goldenrod 1
#eead0e: dark goldenrod 2
#cd950c: dark goldenrod 3
#8b6508: dark goldenrod 4
#00562d: dark green
#bdb76b: dark khaki
#de00a5: dark nessy
#55562f: dark olivegreen
#ff69b4: hot pink
#ff6eb4: hot pink 1
#ee6aa7: hot pink 2
#cd6090: hot pink 3
#8b3a62: hot pink 4
#6b3939: indian red
#ff6a6a: indian red 1
#ee6363: indian red 2
#cd5555: indian red 3
#8b3a3a: indian red 4
#fffff0: ivory 1
#eeeee0: ivory 2
#cdcdc1: ivory 3
#8b8b83: ivory 4
#b3b37e: khaki
#fff68f: khaki 1
#eee685: khaki 2
#cdc673: khaki 3
#8b864e: khaki 4
#e6e6fa: lavander
#fff0f5: lavender blush 1
#eee0e5: lavender blush 2
#cdc1c5: lavender blush 3
#8b8386: lavender blush 4
#7cfc00: lawn green
#fffacd: lemon chiffon 1
#eee9bf: lemon chiffon 2
#cdc9a5: lemon chiffon 3
#8b8970: lemon chiffon 4
#f08080: light
#b0e2ff: light blue
#bfefff: light blue 1
#b2dfee: light blue 2
#9ac0cd: light blue 3
#68838b: light blue 4
#f08080: light coral
#e0ffff: light cyan 1
#d1eeee: light cyan 2
#b4cdcd: light cyan 3
#7a8b8b: light cyan 4
#eedd82: light goldenrod
#ffec8b: light goldenrod 1
#eedc82: light goldenrod 2
#cdbe70: light goldenrod 3
#8b814c: light goldenrod 4
#fafad2: light goldenrod yellow
#ff80d2: light nessy
#ffb6c1: light pink
#ffaeb9: light pink 1
#eea2ad: light pink 2
#cd8c95: light pink 3
#8b5f65: light pink 4
#ffa07a: light salmon 1
#ee9572: light salmon 2
#cd8162: light salmon 3
#8b5742: light salmon 4
#20b2aa: light seagreen
#87cefa: light skyblue
#b0e2ff: light skyblue 1
#a4d3ee: light skyblue 2
#8db6cd: light skyblue 3
#607b8b: light skyblue 4
#8470ff: light slate blue
#778899: light slate gray
#7c98d3: light steel blue
#cae1ff: light steel blue 1
#bcd2ee: light steel blue 2
#a2b5cd: light steel blue 3
#6e7b8b: light steel blue 4
#ffffe0: light yellow 1
#eeeed1: light yellow 2
#cdcdb4: light yellow 3
#8b8b7a: light yellow 4
#00af14: lime green
#faf0e6: linen
#ff00ff: magenta 1
#ee00ee: magenta 2
#cd00cd: magenta 3
#8b008b: magenta 4
#8f0052: maroon
#ff34b3: maroon 1
#ee30a7: maroon 2
#cd2900: maroon 3
#8b1c62: maroon 4
#d1c166: medium
#00938f: med aquamarine
#3232cc: med blue
#32814b: med forest green
#d1c166: med goldenrod
#bd52bd: med orchid
#e066ff: med orchid 1
#d15fee: med orchid 2
#b452cd: med orchid 3
#7a378b: med orchid 4
#9370db: med purple
#ab82ff: med purple 1
#9f79ee: med purple 2
#8968cd: med purple 3
#5d478b: med purple 4
#347766: med sea green
#6a6a8d: med slate blue
#238e23: med spring green
#00d2d2: med turquoise
#d52079: med violet red
#2f2f64: med night blue
#f5fffa: mint cream
#ffe4e1: misty rose
#eed5d2: misty rose 2
#cdb7b5: misty rose 3
#8b7d7b: misty rose 4
#ffe4b5: moccasin
#ffdead: navajo white
#eecfa1: navajo white 2
#cdb38b: navajo white 3
#8b795e: navajo white 4
#232375: navy blue
#ff42d2: nessy
#fdf5e6: old lace
#6b8e23: olive drab
#c0ff3e: olive drab 1
#b3ee3a: olive drab 2
#9acd32: olive drab 3
#698b22: olive drab 4
#ffa500: orange
#ee9a00: orange 2
#cd8500: orange 3
#8b5a00: orange 4
#ff4500: orange-red
#ee4000: orange-red 2
#cd3700: orange-red 3
#8b2500: orange-red 4
#ef84ef: orchid
#ff83fa: orchid 2
#ee7ae9: orchid 3
#cd69c9: orchid 4
#8b4789: orchid 5
#caff70: dark olivegreen 1
#bcee68: dark olivegreen 2
#a2cd5a: dark olivegreen 3
#6e8b3d: dark olivegreen 4
#ff8c00: orange
#ff7f00: dark orange 1
#ee7600: dark orange 2
#cd6600: dark orange 3
#8b4500: dark orange 4
#8b208b: dark orchid
#bf3eff: dark orchid 1
#b23aee: dark orchid 2
#9a32cd: dark orchid 3
#68228b: dark orchid 4
#e9967a: dark salmon
#8fbc8f: dark seagreen
#c1ffc1: dark seagreen 1
#b4eeb4: dark seagreen 2
#9bcd9b: dark seagreen 3
#698b69: dark seagreen 4
#384b66: dark slate blue
#2f4f4f: dark slate gray
#97ffff: dark slate gray 1
#8deeee: dark slate gray 2
#79cdcd: dark slate gray 3
#528b8b: dark slate gray 4
#00a6a6: dark turquoise
#9400d3: dark violet
#ff1493: dark pink 1
#ee1289: dark pink 2
#cd1076: dark pink 3
#8b0a50: dark pink 4
#00bfff: deep skyblue 1
#00b2ee: deep skyblue 2
#009acd: deep skyblue 3
#00688b: deep skyblue 4
#1e90ff: dodger blue 1
#1c86ee: dodger blue 2
#1874cd: dodger blue 3
#104e8b: dodger blue 4
#8e2323: firebrick
#ff3030: firebrick 1
#ee2c2c: firebrick 2
#cd2626: firebrick 3
#8b1a1a: firebrick 4
#fffaf0: foral white
#509f69: forest green
#dcdcdc: gainsboro
#f8f8ff: ghost white
#daaa00: gold
#ffd700: gold 1
#eec900: gold 2
#cdad00: gold 3
#8b7500: gold 4
#efdf84: goldenrod
#ffc125: goldenrod 1
#eeb422: goldenrod 2
#cd9b1d: goldenrod 3
#8b6914: goldenrod 4
#00ff00: green
#00ee00: green 2
#00cd00: green 3
#008b00: green 4
#adff2f: green-yellow
#f0fff0: honeydew 1
#e0eee0: honeydew 2
#c1cdc1: honeydew 3
#838b83: honeydew 4
#73de78: pale
#eee8aa: pale goldenrod
#73de78: pale green
#9aff9a: pale green 1
#90ee90: pale green 2
#7ccd7c: pale green 3
#548b54: pale green 4
#afeeee: pale turquoise
#bbffff: pale turquoise 1
#aeeeee: pale turquoise 2
#96cdcd: pale turquoise 3
#668b8b: pale turquoise 4
#db7093: pale violet-red
#ff82ab: pale violet-red 1
#ee799f: pale violet-red 2
#cd6889: pale violet-red 3
#8b475d: pale violet-red 4
#ffefd5: papaya
#ffdab9: peach puff 1
#eecbad: peach puff 2
#cdaf95: peach puff 3
#8b7765: peach puff 4
#cd853f: peru3
#ffb5c5: pink 1
#eea9b8: pink 2
#cd919e: pink 3
#8b636c: pink 4
#c5489b: plum 1
#eeaeee: plum 2
#cd96cd: plum 3
#8b668b: plum 4
#b0e0e6: powder blue
#a020f0: purple
#9b30ff: purple 1
#912cee: purple 2
#7d26cd: purple 3
#551a8b: purple 4
#ff0000: red
#ee0000: red 2
#cd0000: red 3
#8b0000: red 4
#bc8f8f: rosy brown
#ffc1c1: rosy brown 1
#eeb4b4: rosy brown 2
#cd9b9b: rosy brown 3
#8b6969: rosy brown 4
#4169e1: royal blue
#4876ff: royal blue 1
#436eee: royal blue 2
#3a5fcd: royal blue 3
#27408b: royal blue 4
#8b4513: saddle brown
#e9967a: salmon
#ff8c69: salmon 1
#ee8262: salmon 2
#cd7054: salmon 3
#8b4c39: salmon 4
#f4a460: sandy brown
#529584: sea green
#54ff9f: sea green 1
#4eee94: sea green 2
#43cd80: sea green 3
#2e8b57: sea green 4
#fff5ee: seashell 1
#eee5de: seashell 2
#cdc5bf: seashell 3
#8b8682: seashell 4
#96522d: sienna
#ff8247: sienna 1
#ee7942: sienna 2
#cd6839: sienna 3
#8b4726: sienna 4
#729fff: sky blue
#87ceff: sky blue 1
#7ec0ee: sky blue 2
#4a708b: sky blue 3
#7e88ab: slate blue
#836fff: slate blue 1
#7a67ee: slate blue 2
#6959cd: slate blue 3
#473c8b: slate blue 4
#708090: slate gray
#c6e2ff: slate gray 1
#b9d3ee: slate gray 2
#9fb6cd: slate gray 3
#6c7b8b: slate gray 4
#fffafa: snow 1
#eee9e9: snow 2
#cdc9c9: snow 3
#8b8989: snow 4
#41ac41: spring green
#00ff7f: spring green 1
#00ee76: spring green 2
#00cd66: spring green 3
#008b45: spring green 4
#5470aa: steel blue
#63b8ff: steel blue 1
#5cacee: steel blue 2
#4f94cd: steel blue 3
#36648b: steel blue 4
#deb887: tab
#ffa54f: tan 1
#ee9a49: tan 2
#cd853f: tan 3
#8b5a2b: tan 4
#d8bfd8: thistle
#ffe1ff: thistle 1
#eed2ee: thistle 2
#cdb5cd: thistle 3
#8b7b8b: thistle 4
#ff6347: tomato 1
#ee5c42: tomato 2
#cd4f39: tomato 3
#8b3626: tomato 4
#000001: transparent
#19ccdf: turquoise
#00f5ff: turquoise 1
#00e5ee: turquoise 2
#00c5cd: turquoise 3
#00868b: turqouoise 4
#9c3ece: violet
#f33e96: violet-red
#ff3e96: violet-red 1
#ee3a8c: violet-red 2
#cd3278: violet-red 3
#8b2252: violet-red 4
#f5deb3: wheat
#ffe7ba: wheat 1
#eed8ae: wheat 2
#cdba96: wheat 3
#8b7e66: wheat 4
#f5f5f5: white smoke
#ffff00: yellow
#eeee00: yellow 2
#cdcd00: yellow 3
#8b8b00: yellow 4
#32d838: yellow-green

25 Incredibly Useful CSS Tricks You Should Know

Posted by Muhammad Shiraz Kamboh 0 comments

Here are 25 incredibly useful CSS tricks that will help you design great web interfaces. You might be aware of some or all of these techniques, but this can be your handy resource to nifty CSS tricks that you should know.

Chapter 18 : CSS Pseudo Elements

Posted by Muhammad Shiraz Kamboh Sunday, 27 May 2012 0 comments
The Syntax
The syntax for pseudo elements is a bit different than that of regular CSS, but it’s real close. If you have already read chapter 11 then you are slightly ahead of the game.
selector:pseudo-element {property: value}
As you can see the only difference is that you place the pseudo element after the selector, and divide the 2 with a (:) colon.
Or you can assign a class to a pseudo element as follows

Chapter 17 : CSS Positioning

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: No

Position

The position property (as you may have guessed) changes how elements are positioned on your webpage.
position: value;

Chapter 16 : CSS Classification

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: No

Clear

You can control if an element allows floated elements to its sides with the clear property
clear: value;

Chapter 15 : CSS Width and Height Properties

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: No

Height

You can control the height of an element with the height property
height: value;

Chapter 14 : CSS Lists

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: Yes

List Style

You can control the appearance of ordered and unordered lists in one declaration with the list-style property
list-style: value value;

Chapter 13 : CSS Borders

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: No

Border

You can set the color, style and width of the borders around an element in one declaration by using the border property.
border: 1px solid #333333;

Chapter 12 : CSS Backgrounds

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: No

Background

You can style the background of an element in one declaration with the background property.
background: #ffffff url(path_to_image) top left no-repeat fixed;

Chapter 11 : CSS Anchors, Links and Pseudo Classes

Posted by Muhammad Shiraz Kamboh 0 comments
Below are the various ways you can use CSS to style links.
a:link {color: #009900;}
a:visited {color: #999999;}
a:hover {color: #333333;}
a:focus {color: #333333;}
a:active {color: #009900;}

Chapter 10 : CSS Font Properties

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: Yes

Font

The font property can set the style, weight, variant, size, line height and font:
  font: italic bold normal small/1.4em Verdana, sans-serif;
The above would set the text of an element to an italic style a bold weight a normal variant a relative size a line height of 1.4em and the font to Verdana or another sans-serif typeface.

Font-Family

You can set what font will be displayed in an element with thefont-family property.
There are 2 choices for values:

Chapter 9 : CSS Text Properties

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: Yes

Color

You can set the color of text with the following:
  color: value;
Possible values are
  • color name – example:(red, black…)
  • hexadecimal number – example:(#ff0000, #000000)
  • RGB color code – example:(rgb(255, 0, 0), rgb(0, 0, 0))

Chapter 8 : CSS Padding

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: No
Padding is the distance between the border of an (X)HTML element and the content within it.
Most of the rules for margins also apply to padding, except there is no “auto” value, and negative values cannot be declared for padding.
  padding-top: length percentage;
  padding-left: length percentage;
  padding-right: length percentage;
  padding-bottom: length percentage;

Chapter 7 : CSS Margins

Posted by Muhammad Shiraz Kamboh 0 comments
Inherited: No
As you may have guessed, the margin property declares the margin between an (X)HTML element and the elements around it. The margin property can be set for the top, left, right and bottom of an element. (see example below)
  margin-top: length percentage or auto;
  margin-left: length percentage or auto;
  margin-right: length percentage or auto;
  margin-bottom: length percentage or auto;

Chapter 6 : CSS Spans

Posted by Muhammad Shiraz Kamboh 0 comments
Spans are very similar to divisions except they are an inline element versus a block level element. No linebreak is created when a span is declared.
You can use the span tag to style certain areas of text, as shown in the following:
<span class=”italic”>This text is italic</span>
Then in my CSS file:
.italic{
  font-style: italic;
}

Chapter 5 : CSS Divisions

Posted by Muhammad Shiraz Kamboh 0 comments
Ok so you have finished the first 4 chapters in my series. You have learned the very basics of CSS, how the syntax works and a bit about classes and IDs. Now we are gonna take a quick break from CSS and focus on the (X)HTML side of using it.

Divsions

Divisions are a block level (X)HTML element used to define sections of an (X)HTML file. A division can contain all the parts that make up your website. Including additional divisions, spans, images, text and so on.

Chapter 4 : CSS IDs

Posted by Muhammad Shiraz Kamboh 0 comments
IDs are similar to classes, except once a specific id has been declared it cannot be used again within the same (X)HTML file.
I generally use IDs to style the layout elements of a page that will only be needed once, whereas I use classes to style text and such that may be declared multiple times.
The main container for this page is defined by the following.
<div id=”container”>
Everything within my document is inside this division.
</div>

Chapter 3 : CSS Classes

Posted by Muhammad Shiraz Kamboh 0 comments
The class selector allows you to style items within the same (X)HTML element differently. Similiar to what I mentioned in the introduction about inline styles. Except with classes the style can be overwritten by changing out stylesheets. You can use the same class selector again and again within an (X)HTML file.
To put it more simply, this sentence you are reading is defined in my CSS file with the following.
p {
  font-size: small;
  color: #333333
}

Popular Posts

About Me

My photo
I create this Blog for learn the all kind of tutorial about web developing | HTML, Java, PHP, Graphic designing, Corel Draw, Photoshop, Micromedia Flash, Swish and many more related software and internet programming tutorials.

Followers

Blog Archive