Jump to content


backround problem


7 replies to this topic

#1 Spartacus

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male
  • Location:Sweden
  • Interests:Photoshop, Vb, Basketball

Posted 29 December 2006 - 10:56 AM

okay, here is my site so far: http://mikeydesigns.awardspace.com/

But I got some problems with it ;)

The right side of the website is totaly white and don't want it like that, I want the blue backround too cover the whole screen.

And I want the silver window to be in the middle of the screen and I have no idea how to do all this :wacko:

Can someone help me??

#2 Seth66

    Young Padawan

  • Members
  • Pip
  • 51 posts
  • Gender:Male
  • Location:San José, Costa Rica

Posted 29 December 2006 - 12:36 PM

To fix the back, use:
body {
  background-repeat: repeat;
}

To center it, try this:
body {
  text-align: center;
}

Also, is me, or your site is too heavy? it took me some time to load.

#3 Spartacus

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male
  • Location:Sweden
  • Interests:Photoshop, Vb, Basketball

Posted 29 December 2006 - 01:01 PM

should I just put the code somewhere in the html text or should I put it in specific place?

#4 Seth66

    Young Padawan

  • Members
  • Pip
  • 51 posts
  • Gender:Male
  • Location:San José, Costa Rica

Posted 29 December 2006 - 01:04 PM

In the head section, add this:
<style type="text/css">
  body {
	background-repeat: repeat;
	text-align: center;
  }
</style>

Edited by Slipknot, 29 December 2006 - 01:04 PM.


#5 Spartacus

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male
  • Location:Sweden
  • Interests:Photoshop, Vb, Basketball

Posted 29 December 2006 - 01:09 PM

The page reloded much much better but backround is still bad

#6 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 30 December 2006 - 01:01 AM

Since you used photoshop to slice your site, the background-repeat trick won't do much of anything. You'll have to cut out a portion of the background that will tesselate nicely, and the replace the background-repeat line with this:
background-image: url(path_to_image.gif);
But again, since you used Photoshop, the area around the table will not line up with the fancy new background.

What i'm sort of hinting at here is, don't use photoshop to slice your site, it does more harm than good.

#7 Spartacus

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male
  • Location:Sweden
  • Interests:Photoshop, Vb, Basketball

Posted 30 December 2006 - 12:59 PM

okaay, thanks for the advice :popcorn:

But which program should I use to slice a website then?? Couldn't I just make one big image and use imagemap??

#8 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 31 December 2006 - 03:02 PM

Theoretically, you could use an imagemap, but you wouldn't be able to create a site that your average i-net user today would be interested in (unless you found out something about image maps that i don't know about). And i wouldn't recommend using a program to slice your site, i would recommend learning to code by hand. Look around the forum a bit, you'll find out why as well as how to go about doing it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users