Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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