• Hi there,
    I would like to know if it is possible to use CSS styles within a post?
    Also, I am using the Kubrick template so I assume I’d add my custom CSS styles into the kubrick.css file — for use in the post as per my first question (above).
    With thanks,
    Jonathan

Viewing 9 replies - 1 through 9 (of 9 total)
  • Styles in a post ? Yes, so long as you have defined the style in the css already.

    To give an example, I have a class called “ipa” that sets a font for phonetic characters. When I use the international phonetic alphabet in a post, I type <span class="ipa">[...]</span>. Easy as pie.

    In a similar vein I have .post in my CSS.

    Thread Starter inspired888

    (@inspired888)

    Okay. Thanks for the help.
    So let’s say I have .highlight defined in my stylesheet… to use that in a post I simply add the tag
    <span class=”highlight”>highlighted text</span>
    and that will apply that style. Yes?
    Great. Easy as pie.,
    Cheers,
    Jonathan

    Yup. that’ll do the job ??

    And to save any typing, you could make a quicktag for it ?
    https://www.mfr.f2s.com/quicktags/

    Hmm … and if I need other CSS file atach only in that post ?

    I mean, for pages in WP 1.3(5) i need other CSS file or a link for it … ??
    Like that:

    <style type=”text/css”>
    <!–
    h1 {
    border-bottom-width: 1px;
    border-bottom-style: dotted;
    border-bottom-color: #006600;
    }
    –>
    </style>

    Villas

    I discover that ! .. just include a new CSS tag in CSS theme file.

    the result: https://musica.educar.pro.br/WPR/index.php?page_id=3

    Okay, but can you add just a style code within a post such as <a href="dummy.html" style="color:blue;border:solid 1px blue">fred</a>?

    And is there any way to attach a style sheet to just one post. I have done a series of CSS experiments that I want to post out of fixed html and they have styles embedded and added in the header. Any way to make that work?

    If I add all those experimental CSS codes…my style sheet would be a kilometer long. Any way to do that?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Using CSS style markup in a post’ is closed to new replies.