Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-05 16:50:12

allfive
Member
From: Boston, MA
Registered: 2008-06-08
Posts: 10
Website

Aligning badges properly in default template, sidebar-2

Txp 4.2.0
http://text.donschaefer.net

I don’t understand how to properly align my badges in the right sidebar. They are all over the place in the new Safari browser. They look OK in Firefox 3.6b5, but I have no idea what is the proper way to style. If you view page source, you’ll see they are mostly embedded scripts that I have been using <p> tags and “<p><br class=“spacer_” /></p>” to get them to line up.

Thanks.

donS

Offline

#2 2010-01-05 18:08:37

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Aligning badges properly in default template, sidebar-2

Removing the float property on those img tags should help. I don’t think that’s part of the default stylesheet, did you add this?

Generally preferred to use CSS rather than HTML elements in a purely presentational way, e.g. using breaks and paragraphs for alignment only.


Code is topiary

Offline

#3 2010-01-05 19:11:05

allfive
Member
From: Boston, MA
Registered: 2008-06-08
Posts: 10
Website

Re: Aligning badges properly in default template, sidebar-2

Thank you, Jeff. That’s a good start, but the only float tags I see in the CSS are for the sidebar 2 div itself. I’ll keep checking. :>)

I’ll have to read up on how to style that div so the content I need is aligned left within the div.

Again, thanks. I’m relatively new to TxP.

DonS

Offline

#4 2010-01-05 19:20:27

allfive
Member
From: Boston, MA
Registered: 2008-06-08
Posts: 10
Website

Re: Aligning badges properly in default template, sidebar-2

Oops. Just saw “a img” set to “float left” and removed it. Also removed “<p><br class=“spacer_” /></p>” and added <p> tags to all scripts.

That’s all I know how to do. It looks fine on my Firefox MacOSX browser.

http://text.donschaefer.net

donS

Last edited by allfive (2010-01-05 19:37:35)

Offline

Board footer

Powered by FluxBB