devxlogo

Applying too Much Style can Hurt Readability

Applying too Much Style can Hurt Readability

Cascading Style Sheets (CSS) provide a good way to apply a style sheet to a section of text. With CSS, you can redefine how HTML tags work, for example making all paragraph tags (

) use Arial 12 point type, or you can define named styles which only apply to a section or of text. For instance, applying a style named “bodytext” is as easy as:

 Get ftpMonkey to do the work

Sometimes it is easier to apply the style to the whole table cell, for example:

 Get ftpMonkey to do the work

But if by accident a section of text is styled with a SPAN tag and as a table cell style, the effects are cumulative in some browsers, and the text will be rendered huge or tiny instead of the size specified in the style sheet. The following example shows a doubly applied style, which should be avoided:

 Get ftpMonkey to do the work
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist