Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-06-03 15:28:18
- feytus
- Member
- Registered: 2009-06-02
- Posts: 43
[textile] Image padding in article?
Yo again! I’ve been searching the net to find the textile-tag for image padding in articles, and I’ve found a couple of websites that says you can use a “)” in your textile tag to make an image have a padding of 1em to the left. Anyways, I tried this in my article, but it doesn’t get formatted to html. This is the tag I’ve been writing;
!>)http://urltomyimg/4t.jpg!
Dropped the actual URL because I don’t want people to see the site yet. :) I’ve tried placing the “)” on different sides of the >, but to no avail.
How can I put padding on an image within an article?
Offline
Re: [textile] Image padding in article?
Set a class:
!(padding-left)http://urltomyimg/4t.jpg!
Style the class:
.padding-left {
padding-left: 1em
}
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: [textile] Image padding in article?
feytus wrote:
Yo again! I’ve been searching the net to find the textile-tag for image padding in articles, and I’ve found a couple of websites that says you can use a “)” in your textile tag to make an image have a padding of 1em to the left. Anyways, I tried this in my article, but it doesn’t get formatted to html. This is the tag I’ve been writing;
Hi feytus
I’m not sure where you found that! the way I would go about it is !(padd)http://urltomyimg/4t.jpg(some alt text here)!
then add this css rule .padd{padding-left:1em;}
>Edit trenc beat me to it:)
Last edited by colak (2009-06-03 16:14:27)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [textile] Image padding in article?
Hihi colak! :)
Or using inline:
!{padding-left:1em}http://urltomyimg/4t.jpg!
Last edited by trenc (2009-06-03 16:16:34)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: [textile] Image padding in article?
trenc wrote:
Or:
!{padding-left:1em}http://urltomyimg/4t.jpg!
Would this work? textism returns: <img src="{padding-left:1em}http://urltomyimg/4t.jpg" alt="" />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#6 2009-06-03 16:53:32
- feytus
- Member
- Registered: 2009-06-02
- Posts: 43
Re: [textile] Image padding in article?
Sweetness! You guys are so awesome! Thank you so very much! As you might understand; I’m pretty new to CSS, and especially to textpattern, but I’m loving it more and more by every minute! :) This was were I found that with the “(” by the way;
http://blogs.gawker.com/docs/mtmanual_textile2.html
But as I see, it’s for textile 2, and I’m using 4. :)
Offline
#7 2009-06-03 17:42:32
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [textile] Image padding in article?
colak wrote:
textism returns: …
I don’t think Textism’s Textile page has been updated for a while ;) Thresholdstate returns
<img src="http://urltomyimg/4t.jpg" style="padding-left:1em;" alt="" />
Offline
Re: [textile] Image padding in article?
Els wrote:
I don’t think Textism’s Textile page has been updated for a while ;)
Yep. had it bookmarked for a few years now and although seldom visit the particular page I was trying to multi-task here with embarrassing results:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [textile] Image padding in article?
feytus wrote:
Sweetness! You guys are so awesome! Thank you so very much! As you might understand; I’m pretty new to CSS, and especially to textpattern, but I’m loving it more and more by every minute! :)
You’re welcome! :)
This was were I found that with the “(” by the way;
http://blogs.gawker.com/docs/mtmanual_textile2.html
But as I see, it’s for textile 2, and I’m using 4. :)
No no, you’re resp. Textpattern is using a textile version 2, too. You are mistaked Textile for Textpattern, which is the cms itself. The Textile manual you found describes an adapted textile version for Movable Type.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline