Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. div placement at different location

div placement at different location

Scheduled Pinned Locked Moved Web Development
questioncssdatabase
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cp andy
    wrote on last edited by
    #1

    Hi, In one of the site, the search bar is placed at the top of the page. But for smaller width devices, I want to place the search bar below the navbar. Now my question is using css (media query) I can hide and display the search box depending on the device size but I don't think it will be a good practice to add two search bar at different location in a same page and display and hide one alternatively. So what is the best way to display the search bar at differnt position?

    K 1 Reply Last reply
    0
    • C cp andy

      Hi, In one of the site, the search bar is placed at the top of the page. But for smaller width devices, I want to place the search bar below the navbar. Now my question is using css (media query) I can hide and display the search box depending on the device size but I don't think it will be a good practice to add two search bar at different location in a same page and display and hide one alternatively. So what is the best way to display the search bar at differnt position?

      K Offline
      K Offline
      Konstantin A Magg
      wrote on last edited by
      #2

      Hey Andi, did you have a look at the Bootstrap grid layout [^]? It offers lots of possibilities to adjust your content depending on the screen size. They adjust a lot of styles depending on @media (min-width: ...), if you want to take a look in the sources.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups