What is a Style Sheet in Safari?

Jump to First Reply
Posted:
in Genius Bar edited January 2014
... and how does it work?



TIA.

Comments

  • Reply 1 of 4
    m01etym01ety Posts: 278member
    A style sheet is a CSS file. Its purpose is to determine how a web page is presented. If a web designer is competent and with the times, (s)he will code a page using structural xhtml and then decide how it looks via a css file.



    The style sheet settings in Safari allow you to override the design of certain web pages. For example, a style sheet with the following code...



    ========================================



    body {

    \tbackground: green;

    \tfont-size: 30px;

    \t}



    p {

    \tcolor: red;

    \tborder: 5px solid yellow;

    \t}



    ========================================



    ... would make your eyes melt out of their sockets while you screamed in extreme pain. Why? Because this styleheet would make any page's background bright green, make the font frelling huge, all paragraph text red and wrapped in huge yellow borders.



    It's an advanced feature that most users shouldn't care about. Think of it as overriding certain web site settings, such as the make-fonts-smaller-or-larger buttons in Safari's toolbar.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 4
    mac+mac+ Posts: 580member
    m01ety - Thanks! (helpful explanation)

    segovius - Thanks for the link too.
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 4
    Quote:

    Originally posted by segovius

    It gives you the power do do evil.



    Or just block most kinds of ads
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.