Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9042675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:33:22+00:00 2026-06-16T10:33:22+00:00

I have a section and the a div one right after the other, I

  • 0

I have a section and the a div one right after the other, I want to have the div go slightly below the section with margin-top:-10px to cut off the rounded corners I have created with border-radius. Right now all that happens is the top section moves up and the text inside of it goes on top of the div not the section itself. Here is it in jsfiddle http://jsfiddle.net/37PkJ/. Basically I wont the orange and black to fall underneath the blue. Thanks

html/wordpress

<?php
/*
Template Name:Home
*/
?>
<?php get_header(); ?>
    <section id="mastHead">
        <div id="navResponsive">
            <ul>
                <li><a href="#about">about</a></li>
                <li><a href="#skills">skills</a></li>
                <li><a href="#contact">contact</a></li>
                <li><a href="#footer"><i class="icon-twitter"></i></a></li>
                <li><a href="http://www.linkedin.com/pub/austin-kitson/31/143/296" target="_blank"><i class="icon-linkedin"></i></a></li>
            </ul>
        </div>
        <div id="nav">
            <ul>
                <li><a href="#about">about</a></li>
                <li><a href="#skills">skills</a></li>
                <li><a href="#contact">contact</a></li>
                <li><a href="#footer"><i class="icon-twitter"></i></a></li>
                <li><a href="http://www.linkedin.com/pub/austin-kitson/31/143/296" target="_blank"><i class="icon-linkedin"></i></a></li>
            </ul>
        </div>
    </section>
    <div id="menu">
        <div id="menuCenter">
            <a href="toggleMenu"><i class=" icon-reorder"></i></a>
        </div>
    </div>
<?php get_footer(); ?>

css

html {
  font-size: 62.5%; }

#container {
  background: aqua;
  width: 100%; }

#mastHead li {
  list-style-type: none; }

ul {
  margin: 0;
  padding: 0; }

#navResponsive {
  display: none; }

#menu {
  display: none; }

/*-------------MEDIA QUERIES BITCHES---------------*/
/*-------------------------------------------------*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-width: 320px) and (max-width: 1024px) {
  #navResponsive {
    display: block;
    background: #44749d;
    width: 50%;
    margin-left: auto;
    margin-right: auto; }
    #navResponsive li {
      text-align: center; }
    #navResponsive a {
      font-size: 3em; }

  #nav {
    display: none; }

  #menu {
    display: block;
    width: 50%;
    background: orange;
    margin-left: auto;
    margin-right: auto; }

  #menuCenter {
    width: 4.5em;
    padding: 1em;
    border-radius: 0.5em;
    margin-left: auto;
    margin-right: auto;
    background: black; }
    #menuCenter a {
      text-decoration: none; }
    #menuCenter i {
      font-size: 5em; } }
/*---------------END MEDIA QUERIES-----------------*/
/*-------------------------------------------------*/
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T10:33:23+00:00Added an answer on June 16, 2026 at 10:33 am

    I had to set position to relative on mastHead div. Simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Kind of new to css but I have one image I want on top
I have a main-section div that is set to inherit it's height from its'
I have a div like this <section class=item_container> <article class=item> <h2>Page Title</h2> <p><a class=delete_page
I have the following output: <section class=group> <div class=header>Header 1</div> <div class=item>item1</div> <div class=item>item2</div>
I have a jQuery tab section - and I want to animate the panels
I have a div which contains two nested divs, one that specifies a height
I have the following setup within my HTML document... <div id=logo><h2>my top logo</h2></div> <div
I have up and down arrows on the right hand side of each section
I have a simple HTML page which displays 2 lists one besides the other.
I have 2 divs, one needs to be a fixed width, the other responsive

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.