Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-02 00:16:10

dlbullock
New Member
Registered: 2007-12-02
Posts: 6

Centering Images

I am new to textpatern and textile and have a question on centering images. I posted an image in this post http://www.dennisbullock.net/article/16/farewell-no-so-loved-epson and it is setting as left alignment rather than center like I want it.

Here is my textile call.

And my css

img.left { padding: 3px; margin: 0.5em 15px 5px 0; border: 1px solid #ccc; float: left; clear: left; }

img.center { display: block; padding: 3px; margin: 0 auto 5px auto; border: 1px solid #ccc; float: none; }

img.right { padding: 3px; margin: 0.5em 0 5px 15px; border: 1px solid #ccc; float: right; clear: right; }

Any help is appreciated.

Last edited by dlbullock (2007-12-02 00:17:22)

Offline

#2 2007-12-02 01:07:24

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Centering Images

If it is simple centring you could just use p=. http://www.dennisbullock.net/files/MX310.jpg

If you want CSS to control it then use a “p” tag with a class like p(imgleft). then adjust your CSS selectors accordingly.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2007-12-02 01:15:07

dlbullock
New Member
Registered: 2007-12-02
Posts: 6

Re: Centering Images

I knew it would be any easy one. I really appreciate it!

Offline

#4 2007-12-02 01:23:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Centering Images

No problem. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB