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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:52:57+00:00 2026-05-24T18:52:57+00:00

I have a div in my html page which holds 3 radio buttons: <html>

  • 0

I have a div in my html page which holds 3 radio buttons:

<html> 
<head>
   <link href="CSS/mystyle.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
    <div id="outside">

       <div id="inside">
        <input type="radio"> apple
        <input type="radio"> orange
        <input type="radio"> banana
       </div>

       <div id="others"></div>

    </div>

</body>
</html>

My CSS is located under CSS directory,

CSS/mystyle.css:

#inside{

    font-size:12px;     
    border-color:#ff3366;
    width: 300px;
    height: 50px;
}

The width, height and font-size are set successfully, but the border-color:#ff3366; does not shows, why? Why I am failed to set the border color for the div ?

——————– MORE ———————

By the way, how to locate my inner div (with id=”inside”) to the right hand side of the outside div, with about 100px margin to the right most border of outside div?

  • 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-24T18:52:58+00:00Added an answer on May 24, 2026 at 6:52 pm

    You need to set a border-style. Live example: http://jsfiddle.net/tw16/qRMuQ/

    border-color:#ff3366;
    border-width: 1px; /* this allows you to adjust the thickness */
    border-style: solid;
    

    This can also be written in the shorthand:

    border: 1px solid #ff3366;
    

    UPDATE: To move #inside to the right you need to float:right then add a margin-right: 100px. Live example: http://jsfiddle.net/tw16/qRMuQ/

    #outside{
        overflow:auto;
    }
    #inside{
        font-size:12px;     
        border-color:#ff3366;
        border-width: 1px;
        border-style: solid;
        width: 300px;
        height: 50px;
        float: right; /* this will move it to the right */
        margin-right: 100px; /* this applies the 100px margin from the right */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the following HTML page, I have a div, which contains two spans (
I have a html page with a form. The form has Div which gets
I have the below xpath expression //div[@class=post-content]//img which runs on a html page, scanning
in my html page I have div with css: padding: 0px; color: rgb(51, 51,
I have this html page which globally exists of div , section , and
I have created an HTML page which uses simple CSS (no javascript) for menu
I have an html page which contains a div that displays the html from
I have written a HTML page which has following code. <div id=adsListContainer style=margin: 5px;>
I have a html page in which following master reset css is included. I'll
I have a div in my HTML page which I want to act like

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.