
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 598 Articles for Front End Scripts

593 Views
To control the position of an image in the background, use the background-position property.ExampleYou can try to run the following code to learn how to work with the background-position property. It sets the background image position 30 pixels away from the left side: body { background-image: url("/css/images/css.jpg"); background-position:30px; } Tutorials point

1K+ Views
To control the repetition of an image in the background, use the background-repeat property. You can use no-repeat value for the background-repeat property if you do not want to repeat an image, in this case, the image will display only once.ExampleYou can try to run the following code to learn how to work with the background-repeat property: body { background-image: url("/css/images/css.jpg"); background-repeat: repeat; } Tutorials Point

112 Views
The background-position property is used to control the position of an image in the background.ExampleYou can try to run the following code to learn how to work with the background-position property. It sets the background image position 30 pixels away from the left side: body { background-image: url("/css/images/css.jpg"); background-position:30px; } Tutorials point

113 Views
The background-repeat property is used to control the repetition of an image in the background. You can use no-repeat value for the background-repeat property if you don't want to repeat an image, in this case, the image will display only once.ExampleYou can try to run the following code to learn how to work with the background-repeat property: body { background-image: url("/css/images/css.jpg"); background-repeat: repeat; } Tutorials Point

851 Views
To set letter spacing with CSS, use the em measurement unit.A relative measurement of the height of a font is em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would be 12pt; thus, 2em would be 24pt.ExampleYou can try to run the following code to use CSS to set letter spacing: This div has relative positioning.

288 Views
CSS supports a number of measurements including absolute units such as inches, centimeters, points, and so on, as well as relative measures such as percentages and em units. You need these values while specifying various measurements in your Style rules.The following are the CSS Measurement Units along:UnitDescriptionExample%Defines a measurement as a percentage relative to another value, typically an enclosing element.p {font-size: 16pt; line-height: 125%;}cmDefines a measurement in centimeters.div {margin-bottom: 2cm;}emA relative measurement for the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to ... Read More

250 Views
You may need to put additional comments in your stylesheet blocks. Therefore, it is very easy to comment any part of the style sheet. You can simply put your comments inside /*.....this is a comment in style sheet.....*/.You can use /* ....*/ to comment multi-line blocks in a similar way you do in C and C++ programming languages.Let us see how to add a comment: p { color: red; /* This is a single-line comment */ text-align: center; } /* This is a multi-line comment */ Hello World!