1

enter image description here

jsfiddle.net/warpoluido/JkDhN/175/ - here is what I tried so far.

I'm trying to make the green part a little higher than the blue(or whatever color this is) one, like the image.

it has to be responsive

<div class="modulo-titulopagina_verde">
<header class="modulo-titulopagina">
    <div class="page-header">
        <div class="container">
            <div class="col-12 col-offset-1 col-lg-10 col-lg-offset-1">
            <h1><span>{galeria}</span> {Mod_TituloTitulo}</h1>
            </div>
        </div>
        <!--BEGIN MOD_TITULO_SUBTITULO -->
        <!-- END MOD_TITULO_SUBTITULO -->
    </div>
    </div>
</header>

CSS:

.modulo-titulopagina {
    position:relative;
    background: #166270; /* Old browsers */
    height: 65px;
    width:33%;
    -moz-border-radius-bottomtop: 50px;
    border-top-right-radius: 50px;
}

.modulo-titulopagina_verde {
    background: none repeat scroll 0 0 #72C267;
    height: 65px;
    position: relative;
    width: 100%;
}

.modulo-titulopagina h1 {
    color: #FFFFFF;
    font-family: 'myriadpro-light';
    font-size: 34px;
    margin: -10px 0 0;
    text-align: center;
}
7
  • Please post your code within the question as you were told when you added that JSFiddle link. Commented May 23, 2014 at 13:31
  • your demo looks fairly OK, you can just need to tweak it a little. Commented May 23, 2014 at 13:32
  • Just change the width of the blue bar? .modulo-titulopagina Commented May 23, 2014 at 13:33
  • @KingKing but if I do so, it will look like this jsfiddle.net/warpoluido/JkDhN/175 Commented May 23, 2014 at 13:34
  • You need to reduce the width amount of the blue bar that should do the trick. Commented May 23, 2014 at 13:35

3 Answers 3

2

Would this suit you :

DEMO

CSS I added (I also set .modulo-titulopagina_verde {height:65px;}) :

.modulo-titulopagina_verde:after{
    content:'';
    background:inherit;
    height:10px;
    display:block;
    width:47%;
    position:absolute;
    right:0;
}

PS : I couldn't resist, flowers are much more peacefull than knifes...

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

Comments

0

Set the width of titulopagina to something less than 50%. the 30% looks like it solved your problem. Here's the Fiddle

.modulo-titulopagina {

    position:relative;
    background: #166270; /* Old browsers */

    height: 65px;
    width:30%;
    -moz-border-radius-bottomtop: 50px;
    border-top-right-radius: 50px;


}

2 Comments

jsfiddle.net/warpoluido/JkDhN/175 I need to add 10px height to the green part without affect the blue one
.modulo-titulopagina_verde { background: none repeat scroll 0 0 #72C267; height: 95px;} Change it in modulo_titulopagina verde
0

Try modifying

.modulo-titulopagina { width: ... }

to something smaller than 53%.

With 30% it will look like this: http://jsfiddle.net/alejandronanez/AtqQU/1/

1 Comment

jsfiddle.net/warpoluido/JkDhN/175 I need to add 10px height to the green part without affect the blue one

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.