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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:20:13+00:00 2026-05-11T05:20:13+00:00

This is a challenge for the css gurus out there. I want to show

  • 0

This is a challenge for the css gurus out there. I want to show 2 links on my page, on the same ‘line’, one on the left, one on the right.

The code below works perfectly well in terms of visual presentation, but I’m aware that tables to format a page are not the done thing. Can anyone tell me what the ‘approved’ markup for this should be? I am guessing that this is really simple but I keep mashing up the rest of my page when I try, and keep reverting to the table because it takes seconds to write and does the job, I’m just keen to understand how I should do it.

(I have a element holding the page header / nav above it, and another holding a form directly below it.)

<table width=95%>     <tr>      <td>       <a href='<? echo $url1 ?>'>Back to List of Pages  </a>      </td>      <td align='right'>       <a href='<? echo $url2 ?>'>View this page</a>      </td>     </tr> </table> 

edit – answer found!

OK, I have tested out both Akrikos’ and Magnar’s answers, and Magnars seems to work best in my situation. I found with Akrikos’ method I id need to put a clear:both element underneath to prevent it merging with the div below. also, it was easy to wrap Magnar’s in a

element so the links match the rest of my page, which provided the necessary space between the links and the div below – I needed to put some other spacer in there with Akrikos’ method. Thanks to everyone for your help with this though – I’ve learned a lot in the last 40 minutes!

  • 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. 2026-05-11T05:20:14+00:00Added an answer on May 11, 2026 at 5:20 am

    You can avoid the heavy markup by leveraging the fact that both links are oneliners. With this markup:

    <div id='navigation'></div>      <a id='view' href='...'>View this page</a> <a id='back' href='...'>Back to List of Pages</a>  <form></form> 

    And this simple css:

    #view {     float: right; } 

    No clearing necessary, and no need to specify widths.

    This solution would only work for this scenario: two links. If you need more, then you should look at a set of floating list items.

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

Sidebar

Related Questions

Challenge: I have this code that fails to compile. Can you figure out what's
I'm having trouble trying to figure out how to achieve this programming challenge in
I'm looking for an HTML/CSS solution to this challenge: I have multiple elements with
This CSS challenge is really puzzling me. Here's what I'm trying to do ...
I'm learning MVC and faced this challenge which I can't figure out how. When
Hopefully someone here can help me with this challenge! I have a parent page
This is a challenge question / problem. Hope you find it interesing. Scenario: You
I have a simple challenge with a background not animating. I have used this
8,5,,1,4,7,,,,7,,1,9,3,6,,,8,6,3,9,,2,5,4,,,,,3,2,,,7,4,1,1,,4,,6,9,,5,,,,5,,,1,,6,3,,,6,5,,,,7,4,,1,7,6,,,,8,,5,,,7,1,,3,9, I'm doing a programming challenge where i need to parse this sequence into
this is my code that I write it but I want to use LINQ

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.