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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:24:39+00:00 2026-05-30T20:24:39+00:00

These tabs are designed with <input type=radio> http://virtual.comocreartuweb.es/ (Check it on chrome) <!DOCTYPE HTML>

  • 0

These tabs are designed with <input type="radio">

http://virtual.comocreartuweb.es/ (Check it on chrome)

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title> <style type="text/css">@charset "utf-8";
/* CSS Document */
/*normaliza css/*/
*{content:0; padding:0; border:0; margin:0;outline:0;}
body{font-size:100%; font-family:Verdana, Geneva, sans-serif; background-color:#F1F1F1}
a{text-decoration:none; outline-style:none;}
img{border-width:0;}

/* rectángulo contenedor */
#secciones{position:absolute; top:40%; width:100%; height:50%; background-color:red; border-bottom:1px solid blue;}
.pestaña{display: inline;}

/* título de la pestaña */
.pestaña label{color:#666; cursor:pointer; padding:1%;}

/* contenido*/
.contenido{position:absolute; background-color:lightgreen; top:140px; width:100%;}

/* oculta radio */
.pestaña [type=radio]{display:none;}

/* pestaña activa */
[type=radio]:checked ~ label{color:#333; background:green; border:1px solid pink; border-bottom-color:orange; z-index:2;}
[type=radio]:checked ~ label ~ .contenido{z-index:1;}</style>
</head>
<body>

<div id="secciones">

<div class="pestaña"><input type="radio" id="tab1" name="secciones" checked value="1"><label for="tab1"><img id="imageninmuebles" src="imagenes/inmuebles128.png">Primera</label><div class="contenido">1</div>

<div class="pestaña"><input type="radio" id="tab2" name="secciones" value="2"><label for="tab2"><img id="imagenvehiculos"src="imagenes/vehiculos128.png">Segunda</label><div class="contenido">2</div>

<div class="pestaña"><input type="radio" id="tab3" name="secciones" value="3"><label for="tab3"><img id="imagencompras"src="imagenes/compras128.png">Tercera</label><div class="contenido">3</div>

</div>

</div></div></div></body>
</html>

How can be text placed under the picture, displaying the tabs one next to the other?

  • 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-30T20:24:40+00:00Added an answer on May 30, 2026 at 8:24 pm

    Thanks user1193749, you were close. Wickham at http://www.webdesignerforum.co.uk, succeed: Basically he wrapped the text with span and displayed it as a block element; the image was set with a display:block and also a float:left attribute. Code:

    <!DOCTYPE html>
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title></title> <style type="text/css">@charset "utf-8";
    /* CSS Document */
    /*normaliza css/*/
    *{content:0; padding:0; border:0; margin:0;outline:0;}
    body{font-size:100%; font-family:Verdana, Geneva, sans-serif; background-color:#F1F1F1}
    a{text-decoration:none; outline-style:none;}
    img{border-width:0;}
    
    /* rectángulo contenedor */
    #secciones{position:absolute; top:40%; width:100%; height:50%; background-color:red; border-bottom:1px solid blue;}
    .pestaña{display: inline; /* NEW *******/width: 128px; overflow: hidden; height: 190px; /******** NEW */}
    
    /* título de la pestaña */
    .pestaña label{color:#666; cursor:pointer; padding:1%; /* NEW *******/display: block; width: 128px; float: left; overflow: hidden;}
    label span { display: block; width: 128px; text-align: center; }/******** NEW */
    /* contenido*/
    .contenido{position:absolute; background-color:lightgreen; top:177px;/*155px; 140px;*/ width:100%; }
    
    /* oculta radio */
    .pestaña [type=radio]{display:none;}
    
    /* pestaña activa */
    [type=radio]:checked ~ label{color:#333; background:green; border:1px solid pink; border-bottom-color:orange; z-index:2;}
    [type=radio]:checked ~ label ~ .contenido{z-index:1;}
    
    
    </style>
    </head>
    <body>
    
    <div id="secciones">
    
    <div class="pestaña">
    <input type="radio" id="tab1" name="secciones" checked="" value="1">
    <label for="tab1"><img id="imageninmuebles" src="./index_files/inmuebles128.png"><span>Primera</span></label>
    <div class="contenido">ooohjhk1</div>
    
    <div class="pestaña">
    <input type="radio" id="tab2" name="secciones" value="2">
    <label for="tab2"><img id="imagenvehiculos/vehiculos" src="./index_files/vehiculos128.png"><span>Segunda</span></label>
    <div class="contenido">2</div>
    
    <div class="pestaña">
    <input type="radio" id="tab3" name="secciones" value="3">
    <label for="tab3"><img id="imagencompras" src="./index_files/compras128.png"><span>Tercera</span></label>
    <div class="contenido">3</div> 
    </div>
    
    </div></div></div>
    
    </body></html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At http://docs.jquery.com/UI/Tabs#Example there is a short HTML example of how to use JQuery UI
I have QTabWidget on my form and two tabs on it. These tabs have
I'm hoping someone with Javascript experience can help me out with these tabs. Basically,
Okay, what I currently have is a TabBarController with five tabs. Each of these
I am writing an Android app with three tabs, two designed in portrait mode,
I want to create radio buttons or other type of controls that will act
I have a web page with 2 tabs. These tabs show/hide divs when clicked.
I have TabHost with three tabs. One of these tabs contains ListActivity. I want
I have following code in my php page. These are two tabs Inbox and
I have a tabbar -> navigationcontroller structure. In one of these tabs, I want

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.