Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page content, create div arund images, how?
#4
(2013-10-01, 21:04:07)Timbow Wrote: You can give the image a class easily with the ck edtor, the Advanced tab of image properties iirc. Don't know about a div with an id.

Yes. Thank you for your reply.
I'm aware that you can do all kinds of divs, classes and whatnots straight from CK editor, and even edit your page in plain html. - That's the plan B.

What I was looking for, is a way to automate that.
So every time when user, who doesn't want to know anything about HTML, adds and image on the page there would be a div (or class) around it without any horrifying experience of seeing html tags.

(2013-10-01, 21:15:49)mvlcek Wrote: I hope you know that this is invalid HTML - no div is allowed inside a p.
Sorry, I obviously let your hopes down there. I wasn't thinking. I guess you have to shoot me now. Tongue (Thanks for the heads up.)

Another question crossed my mind:
Is there a way to prevent CK editor adding spaces in between <p>-tags if the paragraph it otherwise empty? So I could use
Code:
p:empty{display:none}
in css to clean the empty paragraphs away?

BTW: I think I posted this on the wrong forum.. Blush
Reply


Messages In This Thread
RE: Page content, create div arund images, how? - by yardan74 - 2013-10-02, 16:19:22



Users browsing this thread: 1 Guest(s)