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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:48:42+00:00 2026-06-12T23:48:42+00:00

I wanted to design something like this. I tried hard to style my code

  • 0

I wanted to design somethin like this
I wanted to design something like this.

I tried hard to style my code and still I couldn’t do it
in my html I have this:

    <div id="main">
    <div class="box1">
    <div class='up'><a href="" class="vote" id="<?php echo $id; ?>" name="up">
    <?php echo $up; ?></a></div>
    <div class='down'><a href="" class="vote" id="<?php echo $id; ?>" name="down"><?php echo $down; ?></a></div>
    </div>
    <div class='box2' >
    <table cellspacing="10">

    <tr>
    <td>
    artist:<?php echo $artist; ?>
    </td>
    <td>
    Song:<?php echo $title; ?>
    </td>
    </tr>
    <tr>
    <td>
    album:<?php echo $album; ?>
    </td>
    <td>
    genre:<?php echo $genre; ?>
    </td>
    <td>

    <button type = "button" name = "Download" onClick = <?php echo $filename;?>>
    Download
    </button>
    </div>
    </td>
    </tr>
    </table>
    </div>
    </div>

and in style I have this:

#main
{
height:80px; border:1px dashed #29ABE2;margin-bottom:7px;
width:600px;
}
a
{
color:#DF3D82;
text-decoration:none;

}
a:hover
{
color:#DF3D82;
text-decoration:underline;

}
.up
{
height:40px; font-size:24px; text-align:center; background-color:#009900; margin-bottom:2px;
-moz-border-radius: 6px;-webkit-border-radius: 6px;
}
.up a
{
color:#FFFFFF;
text-decoration:none;

}
.up a:hover
{
color:#FFFFFF;
text-decoration:none;

}
.down
{
height:40px; font-size:24px; text-align:center; background-color:#cc0000; margin-top:2px;
-moz-border-radius: 6px;-webkit-border-radius: 6px;
}

.down a
{
color:#FFFFFF;
text-decoration:none;

}
.down a:hover
{
color:#FFFFFF;
text-decoration:none;

}
.box1
{
float:left; height:80px; width:50px;
}
.box2
{
float:left; width:500px; text-align:left;
margin-left:10px;height:60px;margin-top:5px;
font-size:15px;
}
.box3
{
float:right; height:80px; width:60px;
}
img
{
border:none;
padding-top:7px;
}

my result looks like this:

enter image description here

  • 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-12T23:48:44+00:00Added an answer on June 12, 2026 at 11:48 pm

    Place the button out of the .box2 div. and wrap the button with a div.

    altered css

    #main
    {
    height:80px; border:1px dashed #29ABE2;margin-bottom:7px;
    width:600px; position:relative
    }
        .box2
        {
        float:left; width:430px; text-align:left;
        margin-left:10px;height:60px;margin-top:5px;
        font-size:15px; background:#993
        }
        .button{float:right; position:absolute; bottom:0; right:0}
    

    HTML

    <div class="button">
    <button type = "button" name = "Download" onClick = <?php echo $filename;?>>Download</button> 
     </div>
    

    Demo http://jsfiddle.net/GPqS2/

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

Sidebar

Related Questions

I have something like this : <div style=width:1300px> <ul class=ul-length ul-textalign> <li class=li-horizontal> A
I have just refactored a colleague's code that, roughly, looked like this... public class
I'm new to database design and just wanted a few opinions as to whether
Wanted to know if someone had a suggestion on code or maybe there's a
I am currently looking to design some WCF services and wanted to get the
I am trying to do the design of a Bejeweled game. I have basically
I've a general design question: I have a mailserver, written in C#. Then I
This looks like a long question because of all the context. There are 2
I'm looking for help identifying this design pattern and learning the typical vocabulary it
I have a design problem. I have two data objects which are instances of

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.