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)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git