www.webdeveloper.com
Results 1 to 4 of 4

Thread: I take code away, but old image wont dissapear

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    I take code away, but old image wont dissapear

    Hi, I have an old image on the left side, and an image on the rigt side.
    The old image, I made it bigger in a graphics program, and am trying to position the new one in place, but now the old image wont dissppear.
    do I just try position the new larger image over it then or what.
    code is
    body{ background-image:url('images/webtemplate1.jpg');
    bacground-repeat:no-repeat;
    color:#000000;
    background-color:red;
    text-align:center;

    I get confused how many body styles or classes you can have. I dont know if every image must be put under background.
    }
    Then I have h1{position:absolute;top:5px;left:400px;
    background:#000A0;
    color:yellow
    font-weight:bold;
    font-size;18pt;
    font-family:font.family:Hawai_killer;
    }
    .p{background:yellow;
    color:red
    text-align:center;
    font-color:red;
    }
    I have the text, which Im moving in the middle between the two images.
    which code must I remove to get rid of the first old image thats on the left of the page. I got rid of the img src= under the <body> only have the img src for the image on the right, and the large new image, that I want on the left in place of the old one, that wont dissapear.

    html <body> is <h1>My ART<h1>

  2. #2
    Join Date
    Mar 2012
    Posts
    48
    please upload your site and give us a link so we can fix you problem

  3. #3
    Join Date
    Nov 2002
    Posts
    2,632
    I'm only seeing one image in this code so not sure how you have an old image and a new one.

    Code:
    body {
        background-image:url('images/webtemplate1.jpg');
        bacground-repeat:no-repeat;
        color:#000000;
        background-color:red;
        text-align:center;
    }
    h1 {
        position:absolute;
        top:5px;
        left:400px;
        background:#000A0;
        color:yellow
        font-weight:bold;
        font-size;18pt;
        font-family:Hawai_killer;
    }
    .p {
        background:yellow;
        color:red
        text-align:center;
    }

  4. #4
    Join Date
    Apr 2012
    Posts
    110

    Thanks Spufi, it seemed to have gone, cant remember how I got rid of it.

    Hi Spufi, thanks, if you can just answer my other question, its a tiny enter button I created in the graphics, well, the graphics did it in 2 seconds, just clicked button and type of button. Just cant seem to place it and am getting confused with div style or div class, cause I dont really want html in with <div style> I just want to put #image{ background etc, } and then use a <div class="image1"> under the<body> html.
    Ive left a thread explaining the code I put in.
    thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles