Jump to content
Sign in to follow this  
onestandard

Advance Fluid/Reactive Styling for Feature Container Background

Recommended Posts

onestandard

Good evening! I'm an unabashed hatchet-surgeon with CSS, but I decided to take a shot at adding a background to the feature box/container: #feature {background:url('http://localhost/wordpress/wp-content/uploads/2011/03/AS-Feature-Background-1b.png') no-repeat 20em 3px;} I have it currently positioned for 1280x800 resolution, but I was wondering if any of you fabulous peeps out there have a suggestion for a fluid/reactive work-around that would allow the position to translate for other resolutions - primarily 1600x900. Thanks in advance for the help.

Share this post


Link to post
Share on other sites
onestandard

Hey, Bryan. How would that solution be applied to an element within the #feature div? Toying around with the code it, the positioning changed where the feature box was displayed, but the background was still relatively in the same position as it was before I added it. To illustrate the issue I'm having here are a couple of screenshots taken with my screen set to 1280x800 and 1600x900: Q76IN.png

Share this post


Link to post
Share on other sites
bryan-hadaway

That's an example of how it might be done, also it was good to show you that this is an advanced customization that you may need to hire a pro for. Thanks, Bryan

Share this post


Link to post
Share on other sites
onestandard

See my post title. I recognized it was 'advanced.' =) Any other examples of how it might be done?

Share this post


Link to post
Share on other sites
bryan-hadaway

Yes, I understand. I don't think there's an easy answer here. I can buzz the developers and see if they have any other suggestions. But, other then having a pro get hands on I'm not sure. Thanks, Bryan

Share this post


Link to post
Share on other sites
onestandard

That would be great, and I appreciate the help.

Share this post


Link to post
Share on other sites
cmunns

So as you enlarge the browser window you want the entire content area of your site to grow as well? Generally this would mean a complete css rewrite on all dynamic elements which are set as actual pixel dimensions. You would need to refactor all that into relative units and I'm not sure how tough that would be. This is what you want correct?

Share this post


Link to post
Share on other sites
onestandard

Negative, Ghostrider! There are two elements of the layout that are not in the correct position at different resolutions. They retain the same relative size, but get moved over to the left of their position in the native resolution I formatted them in. Those two elements are the feature background I added to the CSS (see above), and the footer background I also added code for. Does that clarify my question? Thanks, Adam.

Share this post


Link to post
Share on other sites
cmunns

The css that you added for it. Does it declare `margin:0 auto;` to keep it centered? Do you have a link for us?

Share this post


Link to post
Share on other sites
onestandard

I'm an idjit. Your solution to my other post worked here, as well. Thanks, Adam.

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  

×