GeekIMO

GeekIMO *
Please login or register.

Login with username, password and session length
 

  • Home
  • Help
  • Search
  • Login
  • Register

  • GeekIMO »
  • Guides »
  • Web Development Guides & Tips »
  • CSS script, tilted background
« previous next »
  • Reply
  • Print
Pages: 1   Go Down

Author Topic: CSS script, tilted background  (Read 337 times)

57

  • Guest
CSS script, tilted background
« on: November 17, 2008, 06:04:58 PM »
  • Quote
Someone was reviewing one of the websites I am working on

http://www.s254656003.websitehome.co.uk/

And complained the background is titled.

What does this mean?

And how do I edit my css code so it is not.
char
« Last Edit: January 16, 2009, 06:52:32 PM by 1 »
Report to moderator   Logged

Offline i-CONICA

  • Administrator
  • Guest
  • Posts: 8
  • Geek-Ups: +0/-0
    • View Profile
    • FileQuake.com
Re: CSS script, tilted background
« Reply #1 on: November 18, 2008, 04:35:08 AM »
  • Quote
It is standard practice and good practice to use the smallest image possible and have the browser tile it via CSS.

If you mean the blue gradients at the side, you do have a tiny problem I'd fix, that's the background blue gradient has been placed on the body tag, overriding the style for the background image in the CSS. The CSS has a background image pointing to ../assets/images/background.gif yet the body tag in the page has style="background-image: url('./assets/images/background.png');" placed on it.
I'd remove that and replace the style in the CSS with that image.

As for the tileing, As it's being set as a background-image, it's presumed to need to be repeated automatically. To stop it repeating change

Code: [Select]
background-image : url( "../assets/images/background.gif" )With
Code: [Select]
background-image : url( "../assets/images/background.gif" ) no-repeat
But then you'll have to make that background image very long, 1600px or taller to make sure the end of it isn't seen by users with very high resolution screens.

As for them complaining it's tiled. That is the right and best way of doing it.  :-/ Maybe there's a misunderstanding in what they mean...
Report to moderator   Logged

Offline i-CONICA

  • Administrator
  • Guest
  • Posts: 8
  • Geek-Ups: +0/-0
    • View Profile
    • FileQuake.com
Re: CSS script, tilted background
« Reply #2 on: December 18, 2008, 12:40:15 PM »
  • Quote
Did you get this sorted?
Report to moderator   Logged

  • Reply
  • Print
Pages: 1   Go Up
« previous next »
  • GeekIMO »
  • Guides »
  • Web Development Guides & Tips »
  • CSS script, tilted background
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:

  • Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
  • Sitemap
  • RSS
  • WAP2

Page created in 0.109 seconds with 15 queries.