Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,194 members, 7,957,456 topics. Date: Tuesday, 24 September 2024 at 12:56 PM |
Nairaland Forum / Science/Technology / Programming / How Do I Create Space Between The Menu(nav) And <h1> - Snapshot (1479 Views)
How Do I Create A Responsive Nav Bar / How To Can I Create Amazon Aws Account Using Nigerian Cards? / with how Much Can I create An Online Retail Website And APP? (2) (3) (4)
How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by digitite: 1:54pm On Aug 10, 2018 |
Hello fellows, I am creating a website and want it to be properly arranged. Please, kindly give a simple code on : creating some space between the Menu(nav) and the heading<h1>(Who We Are) and where do I insert the code ? Thanks in Advance
|
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by kaypompee: 2:12pm On Aug 10, 2018 |
Try setting a margin property for the heading. It should work. Maybe between 10 to 20 pixels. So your css code should look like h1{ margin: 10px } |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by alterswerve(m): 2:25pm On Aug 10, 2018 |
Shouldn't this be a stackoverflow.com question? |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by kaypompee: 2:36pm On Aug 10, 2018 |
alterswerve: But why are we all here if we won't be able to assist wit this sort of problem? 3 Likes |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by sparkle6(m): 2:50pm On Aug 10, 2018 |
#text{
margin-top: 10px;
}
That should do. |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by alterswerve(m): 3:47pm On Aug 10, 2018 |
kaypompee: Well, you'll get better answers on stackoverflow.com. The site is tailored for questions like this.. But hey! You got your answer yeah? Good! |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by kaypompee: 9:41am On Aug 11, 2018 |
alterswerve: This programming section is also tailored for that, in case you don't know. 2 Likes |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by fnep2smooth(m): 11:29am On Aug 11, 2018 |
Lol. Give the h1 an id example < h1 id="h1_custom" > Who We Are < / h1 > Then go to your css style sheet and type #h1_custom { margin-top: 20px; } You can set it to your preferred height. Hope this helps |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by fnep2smooth(m): 11:33am On Aug 11, 2018 |
fnep2smooth: Nairaland has change the code. &lt;&gt;&lt;/&gt; And if it doesn't work put a break tag to it br/ or br |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by digitite: 12:36pm On Aug 11, 2018 |
Thank you guys for the response. More still needed. @alterswerve This is a programming section. And we should make Nairaland a top-notch place to visit for solutions on coding issues by brainstorming. 1 Like |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by digitite: 12:50pm On Aug 11, 2018 |
kaypompee: Thank you. That answers some questions. |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by kaypompee: 1:46pm On Aug 11, 2018 |
digitite:Youre welcome. Note that setting that h1 property will affect all h1 elements in your code. So including an ID as suggested above is good as well. |
Re: How Do I Create Space Between The Menu(nav) And <h1> - Snapshot by mexzony: 11:38am On Aug 12, 2018 |
You want him to go to stack overflow and ask a question like this when it's obvious he should know that it's margin top he should set. Stack overflow will kill him and annihilate him even before he finishes asking the question. Those guys are so sensitive as to asking certain qiestuons. It's better he came jejely to nairaland o. |
(1) (Reply)
Want To Learn How To Write Your Own Malwar3? Hop In Here / Disruptive Africa Expo Hackathon 2015 / Advanced Programmers And Engineers Group
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13 |