Jump to content
Sign in to follow this  
nfp1900

Adding text underneath boxes rather than to the side

Recommended Posts

nfp1900

I searched the forum but couldn't see anything that relates to adjusting the location of the copy for boxes. I want to be able to have an image and then a title underneath like this http://www.winkreative.com/portfolio/website_design/default.aspx so that it links to a subsequent page. Maybe boxes is a daft way of creating this? Any other ideas welcome...

Share this post


Link to post
Share on other sites
Rob

There are plugins that do this without boxes. Here's one http://wordpress.org/extend/plugins/photosmash-galleries/screenshots/ There are others. Also, you can change boxes through CSS to your own styling however, they do max out at 5 across. There may be a way of making that larger, but I'm not familiar with how it would be done.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
nfp1900

photosmash is being discontinued and nextgen requires a hack to get URLs to link to images Boxes would be a quick way of implementing this, does anyone have the CSS to adjust the text location for boxes so that it sits underneath the image rather than to the side?

Share this post


Link to post
Share on other sites
slingr

Maybe I'm misreading this, but if you're talking about simply putting an image and text in a box, with the text below the image, (like two of the three boxes I have on www.stevestockdale.com, and you're using Platform Pro, change the image properties to "center" rather than "left." Then the text will be below the image and you can format it as you would any other text. You can wrap your anchor tag around the image and also around the text. I have my videos arranged this way, each video in a box with a short description below - http://stevestockdale.com/wordpress/video-commentaries/ Or, are you talking about the image filling up the box, and then you want to put text under the box? That's a different problem that's probably not solved with boxes based on my understanding of PP boxes.

Share this post


Link to post
Share on other sites
nfp1900

Catrina, great - that's what I wanted to achieve and it's simple to add the URL and looks perfectly neat with a 200px image width. I wanted to add a border to the images using this CSS in the custom code box .fboxgraphic {border:1px solid #021a40;} But it appears with some padding with this rule: .fboxgraphic { float: left; padding-right: 15px; padding-top: 5px; } so I added this CSS in the custom code box with 0 padding but it has no effect. I can see my rule in FBug adjacent to the CSS above but it's crossed out. do I need to add 'important' somewhere or choose something else? Thanks N

Share this post


Link to post
Share on other sites
catrina

Try this CSS:

.fboxgraphic {
	float: left;
	padding-right: 0px !important;
	padding-top: 0px !important;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
nfp1900

Thanks a lot, that worked - but there is still a few px of padding on the bottom of the image. I added padding-bottom: 0px !important; but it had no effect. I also tried just padding: 0px but that also didn't work - do you know how to get shot of those extra few px? This is the page where I'm testing all of this out first: http://s183975894.websitehome.co.uk/wordpress/photography/

Share this post


Link to post
Share on other sites
catrina

Ah, I believe it's a height issue rather than a padding issue. Please add the following line to the .fboxgraphic CSS:

height: 132px;


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×