Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-15 21:29:15

wspence
Member
Registered: 2006-09-03
Posts: 84

CSS question for you guys

I’m having trouble here. I’m trying to remove all tables from my site. I have had no issue prior to this. In my articles every now and then I will have an article image that I want text to flow around it. I have no issues with that except when I use a caption for that image. I have tried using a span class to format the text. Is it possible to use that for alignment as well? Or what do I have to do to get the text right under the photo?

Example article link

Offline

#2 2007-09-15 21:44:53

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: CSS question for you guys

Trying to get rid of all your tables?

table {display:none;}

Ok, I’m kidding, This’ll work

.storyPhoto span{
display:block;
clear:both;
}

it would be better semantically to wrap the caption in a <p>

Last edited by mrdale (2007-09-15 21:45:50)

Offline

#3 2007-09-15 21:55:22

wspence
Member
Registered: 2006-09-03
Posts: 84

Re: CSS question for you guys

HAHA thanks mrdale, but I’ve had issues with using the <p> tag in articles. It seems to carry the styling through the rest of the body following that text.

Last edited by wspence (2007-09-15 21:56:46)

Offline

#4 2007-09-15 23:48:07

wspence
Member
Registered: 2006-09-03
Posts: 84

Re: CSS question for you guys

k got it working after some messing around. many thanks!

Offline

Board footer

Powered by FluxBB