2
I am developing a website but without using any framework to this end;I would like to point out that I have only started in the studies of front, and that CSS is totally new to me.
I’m trying to fix an image in a certain region of a div (this ok) and allocate a text around it. However, it is not working as desired. Below the image of what I have so far:
What I need to do is make the text "flow" around the character, but I have no idea how to do it, and I’ve already cracked my head pretty hard with this problem. All help is welcome. Follow the code I’m using:
HTML:
<section class="welcome">
<h1>Seja o Melhor</h1>
<img class="featured put-on-top-left" src="img/teemo.png" alt="Conquiste a vitória!">
<a class="featured-link" href="">Criar nova <em>build</em></a>
<p class="get-around-right">Crie e compare estratégias de <em>build</em>, analisando as estátiscas que são modificadas a cada novo item escolhido e obtenha o melhor conjunto de itens para o seu campeão!</p>
</section>
CSS:
.welcome {
padding: 15px;
text-align: center;
width: 250px;
border: 5px solid #c0c0c0;
margin: auto;
margin-top: 50px;
background-color: #e9eaec
}
.welcome h1 {
font-family: 'roman-grids-cap';
font-size: 2em;
text-transform: uppercase;
color: #4d4d4d
}
.featured {
max-width: 125px;
position: absolute;
margin-top: 27px;
left: 0px
}
.featured-link {
display: block
}
From now on, thank you for all and qqr help!
tried display block on image?
– Lucas Torres
@Lucastorres this does not work because the limits of an img tag are a tetrahedron. What the OP needs is to make the image boundaries a polygon with (well more than) four sides.
– Oralista de Sistemas
As far as I know (link), this is not yet a possibility. There are plugins that could do this, but it will not work in all browsers.
– Leon Freire