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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:09:04+00:00 2026-05-25T02:09:04+00:00

Struggling with what should be a simple layout. I want a logo, with a

  • 0

Struggling with what should be a simple layout.

I want a logo, with a and a subtext on the right of it.

I have the following ASPX page (but is is plain html so the aspx is not so relevant)

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:Image ID="Image1" CssClass="logo" ImageUrl="~/logo.png" runat="server" />
<h1>
    headertext</h1>
<p>
    <br />
    subtitletext</p>

And the following CSS:

.logo
{
vertical-align: top;
}

h1,p
{ display: inline; }

Now the subtitletext ends up under the logo, and not under the headertext even though the logo is much higher that the two texts together. Any ideas why? The br is needed because I want the p under the H1 and not after it.

ps. i know with some extra DIV’s or a table i can fix it easily, but can’t it be done without them?

  • 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-05-25T02:09:05+00:00Added an answer on May 25, 2026 at 2:09 am

    Why? Because the image, header and paragraph are all inline elements – image as this is its default display and the others because you forced them via CSS rule.

    The line break tag tells the browser: get down one line from the point of this tag, so in your case everything until the <br /> is one line, then after this tag new line begins.

    Most simple way to “solve” this is use float instead of inline display:

    img, h1,p { float: left; }
    

    Live test case.

    Edit: in case of wider contents, the paragraph will appear “after” the header, not aligned properly. To solve this, one way is giving fixed width to them both:

    h1, p { width: 250px; }
    

    Updated fiddle.

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

Sidebar

Related Questions

I have been struggling with something which in theory should be very simple for
I am struggling with something that I think should be easily (ish). I have
I am struggling on something that, I am sure, should be easy. I have
I'm really struggling with something that should be a simple matter: Showing a user
I'm currently struggling to understand how I should organize/structure a class which I have
So I thought this should be easy, but, I'm struggling here... Here's my code:
I'm fairly new to jquery and struggling with something that should be fairly simple.
This (should) be a rather simple thing to do, however I am struggling. I
I have been struggling for too long a time now with a rather simple
I'm struggling with a simple toggle. Well, it should be simple. I'm visiting forums

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.