Help me!!!Lol I''ve been working with RedCloth but it''s runed my layout because it put the <p> and </p> is there a way to remove this without gsubing it up or if I do what the prettiest I can make it? -- Posted via http://www.ruby-forum.com/.
Sorry but if having p around your paragraph destroys your layout then it points more to a faulty layout. On 6/23/06, Mohammad <b@b.com> wrote:> Help me!!!Lol > > I''ve been working with RedCloth but it''s runed my layout because it put > the <p> and </p> is there a way to remove this without gsubing it up or > if I do what the prettiest I can make it? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/
On Fri Jun 23, 2006 at 02:51:30AM +0000, Jon Gretar Borgthorsson wrote:> Sorry but if having p around your paragraph destroys your layout then > it points more to a faulty layout. > > On 6/23/06, Mohammad <b@b.com> wrote: > >Help me!!!Lol > >theres a textilize_without_paragraph or something, which just removes the beginning and ending <p>''s, but then your doc isnt xhtml complaint, since you end up with something like this: blahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdj </p> <p> blahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdj its something im willing to live with, since i cant figure out how to make <p''s really only take space on the bottom, eg, padding-top:0;padding-bottom:1em didnt seem to work right, at least in my browser...> >I''ve been working with RedCloth but it''s runed my layout because it put > >the <p> and </p> is there a way to remove this without gsubing it up or > >if I do what the prettiest I can make it? > > > >-- > >Posted via http://www.ruby-forum.com/. > >_______________________________________________ > >Rails mailing list > >Rails@lists.rubyonrails.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > -------------- > Jon Gretar Borgthorsson > http://www.jongretar.net/ > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Try padding: 1px 1px 5px 1px; or something like that. Think the order is top, left, bottom, right. Same thing can be done with margin. On 6/23/06, carmen <_@whats-your.name> wrote:> > On Fri Jun 23, 2006 at 02:51:30AM +0000, Jon Gretar Borgthorsson wrote: > > Sorry but if having p around your paragraph destroys your layout then > > it points more to a faulty layout. > > > > On 6/23/06, Mohammad <b@b.com> wrote: > > >Help me!!!Lol > > > > > theres a textilize_without_paragraph or something, which just removes the beginning and ending <p>''s, but then your doc isnt xhtml complaint, since you end up with something like this: > > blahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdj > </p> > <p> > blahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdjblahsdblhasdblasdhas lkadj alskdjalskdjalskdjalskdjalskdj > > its something im willing to live with, since i cant figure out how to make <p''s really only take space on the bottom, eg, padding-top:0;padding-bottom:1em didnt seem to work right, at least in my browser... > > > > >I''ve been working with RedCloth but it''s runed my layout because it put > > >the <p> and </p> is there a way to remove this without gsubing it up or > > >if I do what the prettiest I can make it? > > > > > >-- > > >Posted via http://www.ruby-forum.com/. > > >_______________________________________________ > > >Rails mailing list > > >Rails@lists.rubyonrails.org > > >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > -- > > -------------- > > Jon Gretar Borgthorsson > > http://www.jongretar.net/ > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/
On Jun 22, 2006, at 8:09 PM, Jon Gretar Borgthorsson wrote:> Try > padding: 1px 1px 5px 1px; > or something like that. Think the order is top, left, bottom, right. > Same thing can be done with margin.I think you mean "top, right, bottom, left", right? But I''d agree with the "fix your layout if <p> tags are breaking it" suggestion. -> jp