The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS I have a CSS problem!!!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #22887

    I have watched the tutorials on adding code to a PSD file and even though i have used CSS before….i have never sliced up a PSD and pieced it together using CSS.

    The problem i have ( which is flamming peeing me off) is this:
    I have sliced up my PSD file and placed these images ( which i saved as a png) into a file called images inside a file called root. Also in the root file i have a xhtml and css file.
    Then using css…i tried putting all together using <div> tags. But it doesn’t work!!!! Here’s the code.


    <link rel="stylesheet" type="text/css" href="styles.css" />


    <div id="header">



    (Obviously i have a declaration above this)

    THE CSS:

    body {
    background-color: #333333;


    #header {
    background-repeat: repeat-x;
    background-position: top;

    Yet….if i change the header id ( #header) to body…then it works!!
    Please HELP!!!!!!!!!!!!!!


    I can’t help because i dont understand what seems to be the problem! The code seems fine to me.


    Sorted!! I gave it some height and width attributes and bobs your uncle!!

    Many thanks for replies!!


Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.