DEV Community

Cem coduroglu
Cem coduroglu

Posted on


What i'm gonna do wrong?

Hey guys, i just want to improve my HTML CSS skills. I found some challenging picture which is ;

But im stucked on the first box line. I do display: inline-block but it won't work.

My codes are like this ;

    <header class="header">
        <h2>Employee Satisfaction Survey</h2>

        <div class="name">
        <div class="input-area">
            <div class="input1">
                <label>First Name</label><br>
                <input type="text" name="First Name">
            <div class="input2">
                <label>Last Name</label><br>
                <input type="text" name="Last Name">
Enter fullscreen mode Exit fullscreen mode

And CSS like this ;

header {
    text-align: center;


h2 {
    margin-bottom: 30px;

.name {
    margin-left: 30px;

.input-area {
    margin-left: 30px;
display: in;
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Regex for lazy developers

regex for lazy devs

You know who you are. Sorry for the callout πŸ˜†