Autor Tema: Colocar un buscador sobre una imagen?  (Leído 7290 veces)

0 Usuarios y 4 Visitantes están viendo este tema.

Desconectado ghoxt

  • The Communiter-
  • *
  • Mensajes: 1804
Colocar un buscador sobre una imagen?
« : abril 14, 2011, 02:24:10 am »
Yo apenas se cuanto es 2x2 asi que tal ves alguien sabe como se hace eso en dreamweaver ???

no quiero usar background es sobre una imagen

o a fuerza debo ir y hacerlo en CSS?  x_x

Desconectado Jaru

  • The Communiter-
  • *
  • Mensajes: 13252
  • some text
Re: Colocar un buscador sobre una imagen?
« Respuesta #1 : abril 14, 2011, 07:51:28 am »
ce ese ese
N/A

Desconectado chester08

  • Sv Member
  • ***
  • Mensajes: 400
  • ahora tengo otro motivo para no dormir... thnks
    • My Web site
Re: Colocar un buscador sobre una imagen?
« Respuesta #2 : abril 14, 2011, 08:16:43 am »
Sip con CSS  :drinks:

Algun ejemplo que hayas visto, para poder tener una idea mas concreta de lo que querés ???

porq no le veo otra salida mas que con CSS... :)
------------------- Ch3st3r08-----------------------

Desconectado rdoggsv

  • Administrator
  • The Communiter-
  • *
  • Mensajes: 6530
  • "Once you go arch , u never go back"
    • SV CommunitY
Re: Colocar un buscador sobre una imagen?
« Respuesta #3 : abril 14, 2011, 11:39:48 am »
revisa los posicionamientos absolute y relative, para que podas mover el form de la busqueda y posicionarlo ya sea relativamente o absolutamente sobre la imagen  :thumbsup:

Desconectado vlad

  • Global Moderator
  • The Communiter-
  • *
  • Mensajes: 6351
    • Qualium.net
Re: Colocar un buscador sobre una imagen?
« Respuesta #4 : abril 14, 2011, 11:46:31 am »
Que es lo que deseas hacer?, ponerle como fondo un icono a la par del cuadro de búsqueda?

Desconectado ghoxt

  • The Communiter-
  • *
  • Mensajes: 1804
Re: Colocar un buscador sobre una imagen?
« Respuesta #5 : abril 14, 2011, 07:30:32 pm »
no ejemplo




sobre esa imagen un buscador pero seria sobre el header de mi web ya saben ahorrar espacio

no hayo ejemplos pero solo imaginen mi banner del header con un buscador sobrepuesto asi como escribir sobre el header
« Última Modificación: abril 14, 2011, 07:32:42 pm por ghoxt »

Desconectado Franko

  • Sv Member
  • ***
  • Mensajes: 373
  • oLa q ase¿
    • Playa El Cuco.
Re: Colocar un buscador sobre una imagen?
« Respuesta #6 : abril 14, 2011, 09:13:14 pm »
no ejemplo




sobre esa imagen un buscador pero seria sobre el header de mi web ya saben ahorrar espacio

no hayo ejemplos pero solo imaginen mi banner del header con un buscador sobrepuesto asi como escribir sobre el header


Yo tambien quiero hacer algo asi,

es como esta Imagen del principio de este template que estoy usando

http://osc3.template-help.com/wordpress_21588/
  --->  Franko <--- 

Desconectado rdoggsv

  • Administrator
  • The Communiter-
  • *
  • Mensajes: 6530
  • "Once you go arch , u never go back"
    • SV CommunitY
Re: Colocar un buscador sobre una imagen?
« Respuesta #7 : abril 14, 2011, 09:18:37 pm »
Revisa por ejemplo este articulo

http://www.librosweb.es/css/capitulo5/posicionamiento_absoluto.html

Lo que tienes que hacer es jugar con el posicionamiento, puedes por ejemplo poner un div#header y de background ponerle la imagen, luego pones tu form y lo mueves adonde quieres que quede.

Espero que te sirva  :drinks: :drinks:

Desconectado ghoxt

  • The Communiter-
  • *
  • Mensajes: 1804
Re: Colocar un buscador sobre una imagen?
« Respuesta #8 : abril 14, 2011, 09:37:04 pm »
Revisa por ejemplo este articulo

http://www.librosweb.es/css/capitulo5/posicionamiento_absoluto.html

Lo que tienes que hacer es jugar con el posicionamiento, puedes por ejemplo poner un div#header y de background ponerle la imagen, luego pones tu form y lo mueves adonde quieres que quede.

Espero que te sirva  :drinks: :drinks:

bastante bueno hasta condibujitos creo que me servira grax  :thumbsup:

Desconectado salvadoresc

  • Global Moderator
  • The Communiter-
  • *
  • Mensajes: 11652
  • Adobe Certified Expert en ACISEAPRENDE
    • Foro de Diseno - Pixeles al Desnudo
Re: Colocar un buscador sobre una imagen?
« Respuesta #9 : abril 15, 2011, 11:12:47 am »
no es necesario posicionamiento absoluto, con solo anidar los divs ya te podria funcionar:

http://salvadoresc.com/demoform.html

Código: [Seleccionar]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background: #42413C;
margin: 0;
padding: 0;
color: #000;
}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
padding: 0;
margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
padding-right: 15px;
padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
border: none;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
color: #42413C;
text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
color: #6E6C64;
text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
text-decoration: none;
}

/* ~~ this fixed width container surrounds the other divs ~~ */
.container {
width: 960px;
background: #FFF;
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
}

/* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
.header {
height: 90px;
background-color: #ADB96E;
background-image: url(http://mitosoc.org/blogs/wp-content/themes/Cutline2pt1/images/header.jpg);
background-repeat: no-repeat;
}

/* ~~ This is the layout information. ~~

1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.

*/

.content {

padding: 10px 0;
}

/* ~~ The footer ~~ */
.footer {
padding: 10px 0;
background: #CCC49F;
}

/* ~~ miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
.form {
height: 40px;
width: 250px;
margin-top: 40px;
float: left;
}
-->
</style></head>

<body>

<div class="container">
  <div class="header"><a href="#"><img src="" alt="Insert Logo Here" name="Insert_logo" width="180" height="90" class="fltlft" id="Insert_logo" style="background: #C6D580; display:block;" /></a>
    <div class="form">
      <form id="form1" name="form1" method="post" action="">
        <label for="search"></label>
        <input type="text" name="search" id="search" />
        <input type="submit" name="button" id="button" value="Submit" />
      </form>
    </div>
  <!-- end .header --></div>
  <div class="content">
    <h1>Instructions</h1>
    <p>Be aware that the CSS for these layouts is heavily commented. If you do most of your work in Design view, have a peek at the code to get tips on working with the CSS for the fixed layouts. You can remove these comments before you launch your site. To learn more about the techniques used in these CSS Layouts, read this article at Adobe's Developer Center - <a href="http://www.adobe.com/go/adc_css_layouts">http://www.adobe.com/go/adc_css_layouts</a>.</p>
    <h2>Layout</h2>
    <p>Since this is a one-column layout, the .content is not floated. </p>
    <h3>Logo Replacement</h3>
    <p>An image placeholder was used in this layout in the .header where you'll likely want to place  a logo. It is recommended that you remove the placeholder and replace it with your own linked logo. </p>
    <p> Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes. </p>
    <p>To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.)</p>
    <!-- end .content --></div>
  <div class="footer">
    <p>Footer</p>
    <!-- end .footer --></div>
<!-- end .container --></div>
</body>
</html>
Awaken my child, and embrace the glory that is your birthright. Know that I am the Overmind; the eternal will of the Swarm.

haycoctelesamor.com

Desconectado rdoggsv

  • Administrator
  • The Communiter-
  • *
  • Mensajes: 6530
  • "Once you go arch , u never go back"
    • SV CommunitY
Re: Colocar un buscador sobre una imagen?
« Respuesta #10 : abril 15, 2011, 03:31:13 pm »
Me imagino que lo que quiere es mover el form específicamente a una ubicación de la imagen. De ahí parte el hecho de la recomendación del posicionamiento.

Claro que podes utilizar un div con un background de imagen, y adentro de ese div poner un form, pero como haces para ubicarlo precisamente en una posición sobre la imágen ?

Aunque tenes razón que ghoxt no ha especificado en que lugar lo quiere pero creo que yo voy pensando en el tipico background + banner + formulario de busqueda que se acostumbra a poner en los headers y que siempre lo posicionas para que no estorbe tu logo

Desconectado salvadoresc

  • Global Moderator
  • The Communiter-
  • *
  • Mensajes: 11652
  • Adobe Certified Expert en ACISEAPRENDE
    • Foro de Diseno - Pixeles al Desnudo
Re: Colocar un buscador sobre una imagen?
« Respuesta #11 : abril 15, 2011, 03:46:08 pm »
pues fijate que yo lo hice pensando en el ejemplo que pusieron despues por que a ghoxt no le entendi nada XD

ahora lo que decis que si lo queres apartar del logo lo podes hacer con float. por ejemplo yo le puse float left pero podrias cambiarlo a right y te queda del otro lado, ademas si a la izquierda ahorita yo pongo una imagen, no habria problema simplemente la imagen quedaria a la izqu y el form despues de ella...

dejame modificar el archivo con un ejemplo para que lo veas.  :thumbsup:
Awaken my child, and embrace the glory that is your birthright. Know that I am the Overmind; the eternal will of the Swarm.

haycoctelesamor.com

Desconectado cvilanova

  • Sv Member
  • ***
  • Mensajes: 429
  • Samurai Tux
    • Hornos, Cocinas y Todo lo relacionado al Arte Metalico
Re: Colocar un buscador sobre una imagen?
« Respuesta #12 : abril 15, 2011, 03:49:03 pm »
no convendria hacerlo mejor con etiquetas DIV???

siempre usando CSS y posicionando con Z index ???
asi hago yo eso   :thumbsup:


Cocinas, Campanas Extractoras
Hornos para Pan y Pizza
Planchas, Cocinas Industriales
y Mucho más...
Visita: ArteMetalico.co.cc

7459 1228, 7624 4427 y 2293 2691

Desconectado rdoggsv

  • Administrator
  • The Communiter-
  • *
  • Mensajes: 6530
  • "Once you go arch , u never go back"
    • SV CommunitY
Re: Colocar un buscador sobre una imagen?
« Respuesta #13 : abril 15, 2011, 03:56:40 pm »
Man salvadoresc no se si no me doy a entender o que ondas :( , me hablas de float left o float right, eso solo lo va a mover de un lado a otro,  y arrinconar al tope

Como pones un form en una posición especifica de una imagen si no usas posicionamiento ?

Como dicen siempre en los foros hay más de una manera de hacerlo, pero según lo que he visto siempre si queres posicionar algo exactamente en una posición elegida sobre una imagen usas posicionamiento absoluto o relativo.

Desconectado salvadoresc

  • Global Moderator
  • The Communiter-
  • *
  • Mensajes: 11652
  • Adobe Certified Expert en ACISEAPRENDE
    • Foro de Diseno - Pixeles al Desnudo
Re: Colocar un buscador sobre una imagen?
« Respuesta #14 : abril 15, 2011, 03:58:39 pm »
vaya hice cambios con el archivo con algunas variables, el primer header es el que no tenia logo solo tenia el form encima de la iamgen como aparentemente lo pidieron

el segundo tiene el fondo en el header y un logo y a la par del logo el form

el tercero conserva el logo pero el form se va a la derecha
http://salvadoresc.com/demoform.html

solamente usando floats y margenes o paddings  ohyea:



a ver perame creo que hemos entendido cosas diferentes entonces XD aclarame bien que es lo que vos propones
Awaken my child, and embrace the glory that is your birthright. Know that I am the Overmind; the eternal will of the Swarm.

haycoctelesamor.com