0

I encountered a problem where, in the following code-example a space is displayed between the red and black blocks.

Live: http://jsfiddle.net/WF5Ua/

I tried to change position, margin and etc., but I couldn't solve the trouble.

.slider {
    height:594px;
    width:100%;
    background-color:#eb5055;
    border-bottom:6px solid #ea676b;
    clear:both;
}

2 Answers 2

3

Remove the display:inline-block; in header

http://jsfiddle.net/WF5Ua/1/

Sign up to request clarification or add additional context in comments.

Comments

0

The space is because of display:inline-block.for inline:block defaultly a 4px gap will be there.
You can remove that gap in so,many ways but one of my best is using margin and give as a value -4px or font-size:0px.
Rather than all this stuff you can use float:left.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.