Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

CSS Help with CSS

sapph

New Coder
Hello I'm newbie at this. I have a problem. I have two boxes, when I change the screen size or I zoom on the page it desaligns and moves to another part of the page.
What I have to do?
This is my code:
First box:
CSS:
.abt-me {
    position: relative;
    width: 800px;
    height: 250px;
    padding: 1%;
    color: #2c3d42;
    display: block;
    content: "";
    margin-top: -2550px;
    border: 1px hidden;
    font-size: 18px;
    border-radius: 40px;
    box-shadow: 5px 5px 30px 7px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 2px 3px 17px 6px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 2px 3px 17px 6px rgba(0, 0, 0, 0.3);
}

Second box:

CSS:
.wrapper {
    width: 40%;
    min-width: 590px;
    transform: translate(-50%, -50%);
    margin-top: -830px;
    margin-left: 542px;
}

.container {
    width: 100%;
    padding: 30px 30px 50px;
    background-color: rgba(29, 37, 44, 0.8);
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

Thanks
 
Hmm, maybe show some HTML...?
Yes, sorry
HTML:
<body>
    <section class="main">
        <div id="name">
            <h1>Hello, I'm <span>Sapph</span></h1>
        </div>
        <div id="scroll">
            <section id="section02" class="demo">
                <a href="#cards"><span></span></a>
            </section>
        </div>
        <nav class="social">
            <ul>
                <li><a href="">Twitter <i class="fa fa-twitter"></i></a></li>
                <li><a href="">Github <i class="fa fa-github"></i></a></li>
                <li><a href="">Linkedin <i class="fa fa-linkedin"></i></a></li>
            </ul>
        </nav>
    </section>
    <section class="middle">
        <div id="cards">
            <div class="cards-list">
                <div class="card 1">
                    <div class="card_image"></div>
                    <div class="card_title title-white">
                        <p>Contact</p>
                    </div>
                </div>
                <div class="card 3">
                    <div class="card_image">
                    </div>
                    <div class="card_title">
                        <p>Projects</p>
                    </div>
                </div>
            </div>
        </div>
        </div>
    </section>
    <section class="intro">
        <div class="abt-me">
            <h2 style="margin-bottom: 12px" ;><b>
                About Me</b>
            </h2>
            <div class="text-box">
                <p>
                    <center>Hi, I'm Sapph...</center>
                </p>
            </div>
        </div>
    </section>
    <section class="skill-sect">
        <div class="wrapper">
            <div class="container">
                <h2 id="sk">Skills</h2>
                <div class="skills">
                    <div class="details">
                        <span>HTML</span>
                        <span>%</span>
                    </div>
                    <div class="bar">
                        <div id="html-bar"></div>
                    </div>
                </div>
                <div class="skills">
                    <div class="details">
                        <span>CSS</span>
                        <span>%</span>
                    </div>
                    <div class="bar">
                        <div id="css-bar"></div>
                    </div>
                </div>
                <div class="skills">
                    <div class="details">
                        <span>Javascript</span>
                        <span>%</span>
                    </div>
                    <div class="bar">
                        <div id="javascript-bar"></div>
                    </div>
                </div>
                <div class="skills">
                    <div class="details">
                        <span>jQuery</span>
                        <span>%</span>
                    </div>
                    <div class="bar">
                        <div id="jQuery-bar"></div>
                    </div>
                </div>

            </div>
        </div>
    </section>
    <footer>&copy Copyright</footer>
</body>
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom