Function to navigate within the same page without using Scroll [closed]

2

Imagine that I have a page that has the following lines at the bottom or end of the page, what I need is a function that when running shows the content on the screen that the client does not have to use the scoll to be able to see it

 <div id='miContenido'>
      <a name='miLink'>

     <!-- Imagenes y Contenido

      </a>
    </div>
    
asked by Efrain Mejias C 09.08.2016 в 22:12
source

2 answers

2

You could also do text-align: center; to myContent so that everything is centered.

Or you could use flexbox to play with the content in the best way and center everything.

display: flex;
align-items: center;

and it could be better than something else. But it's up to you, regards!

    
answered by 09.08.2016 в 22:37
2

If you want to center an image you can use CSS, I think it's more appropriate:

IMG.imagencentrada{
    display: block;
    margin-left: auto;
    margin-right: auto }
<html>
<body>
<IMG class="imagencentrada" src="http://cdn.sstatic.net/Sites/stackoverflow/img/[email protected]?v=73d79a89bded&a" alt="Buna ziua">
</body>
</html>

To center text for example you would do it this way:

P.textocentrado {
    margin-left: auto;
    margin-right: auto;
    width: 6em
}
<html>
<body>
<P class="textocentrado">¡Bienvenidos a todos a nuestro blog internacional para la comunidad de habla hispana! Hemos creado este espacio para poder comunicar y ser más abiertos en como construimos Stack Overflow en español para ustedes. Aquí, trataremos diversos temas que no son adecuados para el sitio meta. Será un lugar donde podremos pensar en voz alta, compartir pensamientos espontáneos, o otras cosas por el estilo. Compartiremos información exclusiva que generalmente no se encontrará en otro lugar. Esperamos que nos sigan apoyando y se unan al nuevo blog de SOes.
</body>
</html>
    
answered by 09.08.2016 в 22:32