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

  • SEARCH
  • Home
  • 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 8389011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:36:20+00:00 2026-06-09T18:36:20+00:00

Given the markup <div id=header> <a href=cattle.html class=current>Cattle Farms</a> </div> And style #header {

  • 0

Given the markup

<div id="header">
<a href="cattle.html" class="current">Cattle Farms</a>
</div>

And style

#header
{
width: 960px;
height: 200px;
margin-bottom: 20px;
}

#header a
{
width: 100%;
height: 100%;
display: block;
font-size: 25px;
}

How whould I go about placing/positioning/aligning the text “cattle farms” so that it sits 20px from the left and 20px from the bottom in such a manner that it does not break the a out of the div visually even when looking it with Firebug.

  • 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-09T18:36:22+00:00Added an answer on June 9, 2026 at 6:36 pm

    You could simply add a <span> to the anchor and add some padding to that. Like this:

    <div id="header">
      <a href="cattle.html" class="current"><span>Cattle Farms</span></a>
    </div>
    

    And add these additional styles:

    #header a span {
    padding-left: 20px;
    padding-bottom: 20px;
    }
    

    EDIT:

    Also, add overflow: hidden to the header.

    #header {
    overflow: hidden;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given this markup: // Calendar.html?date=1/2/2003 <script> $(function() { $('.inlinedatepicker').datepicker(); }); </script> ... <div class=inlinedatepicker
Given the following mark-up... <div id=Header> <a href=# class=Highlight>foo</a> </div> And the following stylesheet...
Given markup like this : <body> <div style='text-align:center'>header</div> <table> <tr><td> really_wide_table................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ </td></tr> </table> </body>
Given markup like this: <div class=a>A</div> <div class=b>B</div> <div class=a>A</div> <div class=b>B</div> <div class=a>A</div>
So, the markup for the gallery is: <div class=jTscrollerContainer> <div class=jTscroller> <a href=#><img src=thumbs/img1.jpg
Here's a simple example to illustrate the behavior: Given this html markup: <div data-company=Microsoft></div>
I have the fallowing markup: <div class=container> <div style=display:none>1</div> <div style=display:none>2</div> <div style=display:none>3</div> </div>
Given the following markup: <div class=foo> <!-- comments --> some junk content <input type=button
Given this markup: <div class=some_container> <p>...</p> <p>...</p> <p>...</p> <p>...</p> <p>...</p> <p>...</p> <p>...</p> </div> Is
Given a simple C# class definition like: [System.Windows.Markup.ContentProperty(PropertyOne)] public class SimpleBase { public string

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.