+ 1

Hi everyone, after reducing the width of a border, how can i center it ???

Positioning border

8th Dec 2018, 7:10 PM
Sumpheus
Sumpheus - avatar
11 ответов
+ 6
Great! You're welcome. Happy learning!
11th Dec 2018, 1:52 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 5
Ok, I'll see what I can do. Your html needs some restructuring. 👍
8th Dec 2018, 10:56 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 5
No problem. Take a look at grid and flexbox, it's going to come handy in the future.
8th Dec 2018, 11:04 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 4
Hmmm, I'm not sure what you're exactly trying to achieve? Take a look at this and tell me what should be changed :
8th Dec 2018, 10:03 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 3
Show us the code,please.
8th Dec 2018, 7:45 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 3
Hi again! Sorry, I haven't forgotten about you, I was just busy. So, here is the new code, I hope we understood each other. First of all, your html code was quite a mess. You've put your h1 tag in the head tags, you haven't put closing tags to any of the sections etc. So, make sure to check your tags before moving on. I used something called flexbox to arrange content of the page. You would need to learn more about it to fully benefit from the code. You can find out more in freecodecamp.org or in css-tricks.com. I'll leave that to you. 😊 Cheers! https://code.sololearn.com/WmzbylTi67Tm/?ref=app
11th Dec 2018, 10:55 AM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 2
That's perfect!!! I've checked flexbox and realized that it was a major problem in most of my projects (bad structure of my HTML leading to unwanted results) , so time to learn and fix it. Thanks 😉
11th Dec 2018, 1:21 PM
Sumpheus
Sumpheus - avatar
8th Dec 2018, 8:48 PM
Sumpheus
Sumpheus - avatar
+ 1
The code is not finish. It is the h1 that I try to center but don't understand how to do it after many tries. Thanks for the help!
8th Dec 2018, 8:53 PM
Sumpheus
Sumpheus - avatar
+ 1
To move the reduced h1 so it can appeared to be above the red circle (still on the top of the page).
8th Dec 2018, 10:22 PM
Sumpheus
Sumpheus - avatar
+ 1
Thanks a lot😉
8th Dec 2018, 10:59 PM
Sumpheus
Sumpheus - avatar