Hello everybody,
i want to have text within the lines of a border (Div-Block) like this image shows. A little bit to the right (I guess a padding) and then the rest is just a “normal” block.
https://preview.redd.it/sao2qh9xroxc1.jpg?width=260&format=pjpg&auto=webp&s=69ec1fb0c8ceb3632d13713be76e4ea5713bc911
I have not found what i was looking for, trying to Google for things like “Text within a rectangle” because I don’t know what exactly that combination is. Has anybody maybe a minute or two to point me to the right direction or knows how things like that are named so that i can look them up myself?
Many thanks in advance!
[ad_2]
You’re looking for Fieldset + Legend elements. [https://www.w3schools.com/tags/tag_fieldset.asp](https://www.w3schools.com/tags/tag_fieldset.asp)
Or fake it with CSS
[https://codepen.io/bolton/pen/WNWBOBN](https://codepen.io/bolton/pen/WNWBOBN)
In GeneratePress (the theme I’m using), this is called a container. It actuality, just a plain old HTML div.
Most designs used nester/inner containers (divs) to control the content.