• Resolved grapefruitgirl

    (@grapefruitgirl)


    hi,

    i tried to add a div coded css box to my entry and it shows up instead as just code instead of rendering properly. is div codes within an entry not possible?

    here’s the page:

    https://www.grapefruitgirl.com/edibles

    here’s the code:

    <DIV
    style=”BORDER-RIGHT: #000000 1px dashed; PADDING-RIGHT: 10px; BORDER-TOP: #000000 1px dashed; PADDING-LEFT: 10px; FONT-SIZE: 11px; PADDING-BOTTOM: 10px; MARGIN: 50px; BORDER-LEFT: #000000 1px dashed; WIDTH: 200px; COLOR: #000000; LINE-HEIGHT: 11px; PADDING-TOP: 10px; BORDER-BOTTOM: #000000 1px dashed; FONT-FAMILY: verdana, areal,
    sans-serif; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: justify”>
    text
    </DIV>

Viewing 12 replies - 1 through 12 (of 12 total)
  • Disable the wysiwyg editor first (or use the HTML edit feature). Then try again.

    To disable wysiwyg: Users -> Your Preferences. Bottom-most checkbox, uncheck.

    Thread Starter grapefruitgirl

    (@grapefruitgirl)

    sorry you ask a ridiculous question, but from the web interface, I cant seem to find Users> Your Preferences.

    ??

    Your Profile…

    Actually in the current version of WordPress it’s

    Users > Your Profile, Personal Options (bottom of Your Profile page).

    *sigh*

    Note to self: Coffee first, then post.

    Thread Starter grapefruitgirl

    (@grapefruitgirl)

    hi,

    thing is, i already disabled it. it was already disabled when i made this post ??

    wonder why it’s not working. any ideas?

    Based on your most recent blog post, it sure looks like that was pasted into the wysiwyg editor.

    It starts with <DIV<br /> which will surely lead to heartache.

    Regardless of how it was added, edit your post and remove those <br /> tags that are sprinkled throughout your div and style attributes so they function.

    Thread Starter grapefruitgirl

    (@grapefruitgirl)

    hi there,

    ok, so i took out the < br > tags and made certain that the “Use the visual rich editor when writing” is NOT checked and it is still not rendering the code. i checked the /div code locally on a test html page and it renders fine, so i’m not sure what i am doing wrong.

    here is the div code:


    <DIV
    style="BORDER-RIGHT: #000000 1px dashed; PADDING-RIGHT: 10px; BORDER-TOP: #000000 1px dashed; PADDING-LEFT: 10px; FONT-SIZE: 11px; PADDING-BOTTOM: 10px; MARGIN: 50px; BORDER-LEFT: #000000 1px dashed; WIDTH: 200px; COLOR: #000000; LINE-HEIGHT: 11px; PADDING-TOP: 10px; BORDER-BOTTOM: #000000 1px dashed; FONT-FAMILY: verdana, areal,
    sans-serif; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: justify">
    OMG WTF ???
    </DIV>

    help?

    I use divs within posts all of the time. I have to ask why youre styling the div on the fly though? If its something youre going to be using over and over again, add it to your stylesheet.

    <div class="point">this is what i do</div>

    works everytime for me.

    Thread Starter grapefruitgirl

    (@grapefruitgirl)

    good point! not sure why i didnt think of that. i added a style titled “box” to my stylesheet and that sorted it.

    thank you =)

    youre VERY welcome ?? “sorted it” (lemme guess, your british?)

    Thread Starter grapefruitgirl

    (@grapefruitgirl)

    =)

    i’m actually American but lived in London for a while ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘<div > code allowed in entries?’ is closed to new replies.