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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:45:00+00:00 2026-05-25T13:45:00+00:00

This is probably a very easy question, but I never really did web… so

  • 0

This is probably a very easy question, but I never really did web… so I have my troubles with CSS.

I’m trying to style my CV using CSS and HTML5. I have created a little class for my main aside, which I intend to use as the place to put things that are somehow related to the main content, such as new official artworks from our game artists in a page about the new game’s gameplay, or links to game characters, etc.

I also wanted to eventually reuse the aside element in other containers, such as the navigation bar, to have a special element on each page that’s clearly set apart of other navigation links.

However, while the latter part works, the first fails. I think applying the rightpane class to my aside element resets the position to the left, when I thought it would apply the float: right rule and then position absolutely 20% from the top.

  • Is my understanding correct?
  • If I add a right: 5% rule to the aside element styling, then my box displays somehow where I want, but it’s a pre-decided position compared to letting it float on the right, which seems bad?

So what should I do?

aside {
text-align: right;
float: right;
}

.rightpane {
text-align: right;
overflow: scroll;
visibility: visible;
position: absolute;
max-width: 20%;
top: 20%;
}

I use that in a code that looks this way:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<link rel="stylesheet" type="text/css" href="../Presentation/CSS/main.css" />
<title>
Minus and Brains, Inc.
</title>
</head>
<body>
<nav id="navBar" class="center">
<ul>
<li>
<a href="wtf.html">WTF</a>
</li>
<li>
<a href="Cheese.html">Cheese</a>
</li>
<aside>
<li>
<a href="supertramp.html">Breakfast in America</a>
</aside>
</li>
</ul>
</nav>
<article>
<h2>Plans to conquer the world</h2><time datetime=”2011-09-09T19:31:45+01:00″>9 septembre 2011</time>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</article>
<aside class="rightpane">09/09/2011<br/>Some brilliant news: Brains finally takes over World!</aside>
</body>
</html>
  • 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-25T13:45:01+00:00Added an answer on May 25, 2026 at 1:45 pm

    I created a fiddle: http://jsfiddle.net/jasongennaro/StuPB/ but it is hard to tell what is happening here because we are missing some of your css.

    In any case, position and float cannot coexist in the way you think… so one will override the other.

    If you want the .rightpane to stay right, then you need to add a right:0px (or some other appropriate px/%/etc.) to your css, something like

    aside.rightpane {
        text-align: right;
        overflow: scroll;
        visibility: visible;
        position: absolute;
        max-width: 20%;
        top: 20%;
        right:0%;  //ADDITION HERE
    } 
    

    Updated example: http://jsfiddle.net/jasongennaro/StuPB/1/

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

Sidebar

Related Questions

Probably this is a very easy question, but I did not find yet how
This is probably a very easy question to answer, but for the life of
Ok I have a question and it is probably very easy but I can
This is probably a really easy question, it's just very hard to google a
I'm afraid this is probably a very embarrassingly easy question - but my mind
This probably sounds really stupid but I have noo idea how to implement jquery's
Ok, this probably has a really simple answer, but I've never tried to do
This is probably a really simple jQuery question, but I couldn't answer it after
This is probably a really stupid newbie-sounding question to you developer type people, but
I know this is probably very easy, but I want to add sprites in

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.