Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Turn PSD Into CSS Background

Featured Replies

Hi Everyone, :)

 

I have been asked to create a website for a charity who go into disabled schools and put on plays and tell storys.

 

I wanted to make a book effect website, but they all seem to be in flash. (something which i am no good at.)

 

But i found a great photoshop file of a scroll, which i would like to use as a background.

 

What would be the best way to do this, without it taking so long to load?

 

Thanks in advance.

That psd file is massive mate, would you not be able to use an old style paper as the background that you could then repeat?

 

If not you could take the header and footer of ther scroll putting them in there on divs and have a repeat for the content area.

Hi,

 

The poster above is right. Having the whole image set as your background-image is not the way to go. Massive download time. Create three divs - header, main content and footer. Have header and footer at a set height and create an image for both. For the middle, create an image which can repeat on the y-axis, allowing for a much lower download time. This also allows the content to be dynamic.

  • Author

Thanks All,

 

I already thought i would need the three divs, was just not sure if there was an easier way...

 

I know the PSD is massive, thats because its the original which is about 3000 width, i only need it to be about 900.

 

What file type would be best to save the images as to keep good quailty but small filesize?

 

Many thanks

First of all i'd recommend you use the save for web function in photoshop (found in File), then go on to using png crusher, then use yahoo's web development tools to lower the size further. I haven't looked a the PSD (photoshop not installed on this PC), however if there are places which are one consistant colour you should slice the background up.

owow, thanks for this post, I'm trying to download this, but I'm fail for my slow connection.

  • Author

Hi All,

 

I have now managed to slice up the scroll and optimse the images, but its still pretty slow..

 

www.storymakersuk.com

 

I know i need to reduce the numbers of images and replace it with CSS, but i am struggling to obtain the same effect.

 

Any help would be greatful.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.