Seems like you know HTML so stop using the visual editor…it’s lame.
+1 on ditch the visual editor.
It can be perfectly useful as long as your design is completely removed from the content… which is barely ever actually possible, despite that being the point of CSS.
Unfortunately some things just require nested elements, and as far as I’m concerned, tags and IDs and classes and other markup is *design*, not content.
…
Having said that, there’s really not much you can do with a <div> that you can’t do with a correct CSS definition for your <p id=”blah”>
Putting a div in your post really shouldn’t ever be necessary if you can stay on top of your CSS.
for instance you could use:
<h3 class=”info”>Something would go here and you could style it all special like.</h3>
The editor would be much less likely to butcher that. One other thing…edit your quicktags to keep your classes fresh in your mind and handy.
As longas I stay on top of my css? No…no no no.
See, when I type something as part of a design, I WANTED that. I don’t want wordpress to change it for me. I wanted a div id not a p id.
Now for all you apparently godly css’ers, tell me, how do I make a <p> not make the content immediately following the </p> NOT go to the next line and instead stay on the same line?
This is why I want a div and not a p.
There has to be a way to fix this from happening, even disabling the visual editor or something?
Ralph23, just in case you haven’t notified: If you want something to be the way you typed it, it is a good advice to not use wordpress at all. WordPress gets your input, throws it out at the street, let tons of cars rail over it, get it then in the clinic, get it pumped up there again, with some luck it comes back and is then delivered to your browser.
So if I get you right and you mean “when I type something as part of a design, I WANTED that” seriously, then please, stop using wordpress. Or there is somewhere a plugin (can not remember it now) that completely de-activates those wordpress own code parsers. This should do the trick as well.
“Now for all you apparently godly css’ers, tell me, how do I make a <p> not make the content immediately following the </p> NOT go to the next line and instead stay on the same line?”
Div’s do that by default as well, so the answer is the same CSS you use for the div will do it for the P element too.
try display:inline for instance.
Searched for some plugins that might be of use:
- Disable wpautop Plugin
- WP Unformatted
This is all about Filters and you can create a plugin that removes them all so you really get it the way you type it.