• I added this to my theme’s css file:

    div.box {float: left;}

    this is so I don’t have to use tables.

    But when I go to the HTML editor and do <div class=”box> <img…> </div>

    Everything inside just disappears!

    Not to mention that tables are next to impossible to edit because as soon as I save and re-open the editor, wordpress has decided to justify all the text to the left, remove all spacing… it’s a mess. I really love the simplicity of wordpress, and I REALLY don’t want to deal with the headache that is drupal for something as simple as not being able to use the <div> tag and edit HTML comfortably.

    There’s gotta be a way to do this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you switch back and forth between the visual and html editors, it will mess up your code. I’d recommend using only the html editor and disabling the visual editor (in your profile) if you will be adding code to your posts.

    Also, try deselecting “WordPress should correct invalidly nested XHTML automatically” in your writing settings if it’s selected.

    Thread Starter noamgr

    (@noamgr)

    It already had it deselected. Images within <div> tags still disappear on me.

    The one time I got it to work it screwed up the look of the whole page. I just need to float some boxes of content left to make the page neater

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can’t use <div> ?’ is closed to new replies.