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 7968983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:09:49+00:00 2026-06-04T07:09:49+00:00

How to code for this? When we have this: as <html> <head> <style> h2

  • 0

How to code for this?

enter image description here

When we have this:
enter image description here

as

<html>
    <head>
        <style>             
            h2
            {
                letter-spacing:4pt;
                font-size:40pt;
                color:blue;
                text-align:center;
                position:absolute;
                top:0px;
            }
            h3
            {
                letter-spacing:4pt;
                font-size:40pt;
                color:blue;
                text-align:center;
                position: absolute;
                top:20px;
                left:20px;
            }
        </style>
    </head>

    <body>
        <h2>All right, Mate?</h2>
        <h3>All right, Mate?</h3>
    </body>
</html>
</html>

…without changing the original functionality/tags.
Only add (or modify) a bit.

  • 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-04T07:09:50+00:00Added an answer on June 4, 2026 at 7:09 am

    You can put both in a wrapper with position set to relative and define a fixed width and height to it.

    HTML

    <div class="wrapper">
        <h2>All righ, Mate?</h2>
        <h3>All right, Mate?</h3>
    </div>​
    

    CSS

    .wrapper 
    {
        border: 3px solid #ff0000;
        position: relative;
        width: 448px;
        height: 89px;
    }    
    h2
    {
        letter-spacing:4pt;
        font-size:40pt;
        color:blue;
        text-align:center;
        position:absolute;
        top:0px;
    }
    h3
    {
        letter-spacing:4pt;
        font-size:40pt;
        color:blue;
        text-align:center;
        position: absolute;
        top:20px;
        left:20px;
    }​
    

    It’s necessary to define a height because both elements have the position set to absolute, it makes the elements to be removed from the normal flow of the document, so the parent element, in this case the wrapper, won’t add the height of the absolute positioned children to its own.
    Also, note that defining the parent’s position to relative will affect the position of the children, as their position will be calculated in relation to the parent’s position. If you don’t want this behaviour just remove the position: relative from the .wrapper rule.

    Live example

    Hope it helps.

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

Sidebar

Related Questions

I have this code: <html> <head> <style type=text/css> .container { border-bottom: 1px dotted #999999;
I have this code <html> <head> <style type=text/css> .frame {width: 50em; border: 1px solid
So i have this code <html> <head> <style type=text/css> div.one { border:1px solid black;
I have this html code <html> <head> <title>JQuery Problem 2</title> <script type=text/javascript src=jquery-1.4.min.js></script> <script
OK i have this code HTML: <html> <head> <script type=text/javascript src=http://code.jquery.com/jquery-1.7.1.min.js> </script> <script type=text/javascript>
Ok, I have this code: <html> <head> <script type=text/javascript src=http://code.jquery.com/jquery-1.7.1.min.js></script> <script type=text/javascript> function get()
I have this simple code: <html> <head> <script src=jquery-1.5.1.min.js type=text/javascript></script> <script type=text/javascript> $(function() {
I have this code: <html> <head> <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js></script> <script type=text/javascript> $(function(){ $('a.one').click(function(event){ event.preventDefault();
I've got this code: <html> <head> <style type=text/css> body { text-align: center; } #content
Here's the code I currently have. <!DOCTYPE html> <html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8/>

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.