CSS is like your girlfriend, no one understands.

Ahmer Patel
3 min readMay 24, 2021

Early browsers presented a page as hypertext — plain text, images and links to other hypertext pages. There was no layout at all to speak of, merely paragraphs running across the page in a single column, aka ugly .Websites used to look like newspapers on digital screen. They put the “style” in style sheets, and for the first time, Web pages could be designed. Style sheets in browsers were not an entirely new idea. The separation of document structure from the document’s layout had been a goal of HTML from its inception in 1990. The first commercial browser to read and utilize CSS was Microsoft’s Internet Explorer 3 in 1998 (RIP Internet Explorer). To this day, support for certain CSS functions varies from browser to browser.

CSS doesn’t work like all the other languages work ,it doesn’t work the way a lot of other languages work, and it doesn’t work the way that we are used to design programs working. It is a very strange language.

CSS is one of three core web languages but it also seems to be the most contentious and often perplexing. It is just like your girlfriend (could be imaginary) ,sometimes too easy to understand and sometimes hard, sometimes too fragile and sometimes too resilient. CSS works by creating rules. These rules are simultaneously applied to multiple elements within the site. Eliminating the repetitive coding style of HTML makes development work faster and less monotonous.

So what is CSS and how does it fit into all this?

CSS sits on top of HTML’s raw structure to dress it up and make everything look pretty. This is why HTML and CSS are foundational to all web design — they work together to build and format web pages. CSS applies formatting (like fonts, colors, object positioning, and so on) on top of a page’s raw structural framework. The only major limitation of CSS is that its performance depends largely on browser support. Besides compatibility, all browsers (and their many versions) function differently. So your CSS needs to account for all these variations. CSS is as important as your girlfriend is to you , it makes you look loved , confident and cool. CSS separates a page’s content and structure from it’s design and formatting. This allows designers and website owners to quickly apply formatting to their layouts, and make any necessary changes and tweaks.

Cascading Style Sheets (CSS)

Finally, we took a look at the different types of CSS. Specifically, the different types of CSS selectors you can use in your work, and the different ways that CSS can be applied to your web layouts — internal style sheets, external style sheets, and inline CSS. Keep cracking up your head and build new things on the web , Design on the web will always going to be weird, and we have the power to keep making it better .Its time for you to treat CSS like your girlfriend maybe then you will be able to understand how it works the way it works.

— The Golden Blogger

--

--