12.07.2018 Views

7 Best Useful CSS Tips to Consider

Here are some significant and useful CSS tips and tricks that can be helpful for developers.

Here are some significant and useful CSS tips and tricks that can be helpful for developers.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Content<br />

Content could be a <strong>CSS</strong> property that comes in handy after you got <strong>to</strong><br />

insert a part that you just wish <strong>to</strong> be able <strong>to</strong> manage. The foremost<br />

usual use I’ve seen for this can be <strong>to</strong> insert an icon from an icon font<br />

in a very specific place.<br />

4. Removing Active Link Borders<br />

You might have observed browsers like Internet Explorer and<br />

Firefox adds a line border over the link consumer clicked earlier. It's<br />

a helpful user accessibility feature however if you wish <strong>to</strong> induce<br />

eliminate it, here is that the tiny code that may assist you.<br />

Example:-<br />

a:active, a:focus{ outline:none; }<br />

5. Small Caps Text<br />

The text property of Small caps will build all the letters <strong>to</strong> capital.<br />

This conjointly makes all different letters except the primary, <strong>to</strong> be a<br />

bit smaller.<br />

Example-<br />

font-variant:small-caps;<br />

6. Vertical Alignment (For One Line of Text)<br />

You will use this during a <strong>CSS</strong> navigation menu, I will virtually

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!