Forums

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

Home Forums CSS How to fix the white space at the top issue?

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #46388
    knowledgenotebook
    Participant

    Hi,

    I’m a CSS newbie, my following page has an issue of the white space at the top,

    http://www.knowledgenotebook.com/index2.html

    How do we fix it?

    Thanks.

    #142755
    Paulie_D
    Member

    It’s actually in the background image of the header

    http://www.knowledgenotebook.com/images/header.repeat_s3.jpg

    #142762
    knowledgenotebook
    Participant

    Thank you, Paulie, would I be able to remove the white space at the top of this image with the Paint program in Windows? Or Paint probably won’t be able to cut it and compromise the image quality?

    #142765
    Paulie_D
    Member

    With Paint?

    No…probably not. I don’t think it supports transparency to start with.

    You’d need something a little more advanced. I hesitate to say Photoshop as it’s a big ask but there are similar products available for less.

    Frankly, the image is so simple that you could eliminate it and do the whole thing with CSS (border-radius and a gradient).

    #142768
    georgearnall
    Participant

    If your looking for a relatively better free photo editor for windows use [Paint.NET](http://www.getpaint.net/ “Paint.net”)

    #142774
    knowledgenotebook
    Participant

    Paulie, with regard to “do the whole thing with CSS (border-radius and a gradient)”, do you have to think about it for my case or it’s really no brainer for you?

    Many thanks.

    #142778
    Paulie_D
    Member

    No thinking…dead easy.

    http://codepen.io/Paulie-D/pen/recka

    Now you would have to change the colors and perhaps add a color stop and add any required vendor prefixes but those are pretty minor.

    #142782
    knowledgenotebook
    Participant

    Ok, Paulie,

    Probably for the following:
    header {
    min-height:150px;
    border-radius: 25px 25px 0 0 ;
    background:linear-gradient(blue, lightblue);
    }

    my color is #BCD3FF
    how do I apply your “blue, lightblue” to mine?

    Thanks.

    #142789
    Paulie_D
    Member

    You have a start colour and an end colour. Just swap those in.

    #142791
    Paulie_D
    Member

    Ok…now remove the bg image from .wrap/

    #142792
    Rohithzr
    Participant

    Remove
    .wrap {
    background: url('../images/header.repeat_s3.jpg') #FFF repeat-x top;
    }

    this line in .wrap class

    #142796
    Paulie_D
    Member

    No…don’t remove the wrap…remove the background image from the wrap

    #142800
    Paulie_D
    Member

    It’s this image

    Just remove it for now.

    #142801
    Rohithzr
    Participant

    remove this image and then remove center tag from heading and set left margin for the heading

    edit codes in the next comment

    #142803
    Rohithzr
    Participant

    remove this

    edit heading area with this

    Software for Students

    Edit : better add the style part in css

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