Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

How to use inline css?

  1. #1

  2. #2
    Junior Member
    Join Date
    Mar 2017
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Use the HTML style attribute for inline styling.
    Use the HTML <style> element to define internal CSS.
    Use the HTML <link> element to refer to an external CSS file.
    Use the HTML <head> element to store <style> and <link> elements.
    Use the CSS color property for text colors.
    More items... etc.................

  3. #3
    Junior Member
    Join Date
    Oct 2016
    Posts
    195
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    When CSS is written using the style attribute, it's called an "inline style". Inline styles look and operate much like CSS, with a few differences. Inline styles directly affect the tag they are written in, without the use of selectors.

    For example:

    <html>
    <head>
    </head>
    <body>
    <p style=”color:blue;”>
    I am paragraph.
    </p>
    </body>
    </html>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •