Přejít na menu

Responsive webdesign

Správa článků

Vyhledávání Vyhledávání
10.10.2013 21:23
,
Počet přečtení: 647
Obrázek ke článku Responsive webdesign

Techniques and tips for making websites responsive.

Why responsive webdesign?

  • one page for all devices - no need to make different versions, nevertheless on all devices will be accurate!
  • minimalistic design is easy for human and search engine navigation

Menus and layout

Basic types (source article [saved]):

Responsive tables

There are some techniques to display wide tables on small screens (source):

  1. Hide less-importanat columns
  2. Rearrange table vertically - put attributes vertically and rows horizontally - so you will se the whole entity ("row" on widescreens) on the dsiplay, but you have to scroll horizontally to see other entites
  3. Leave tables and display entities ("rows") as boxes vertically, with its attributes ("cols") also vertically.
  4. Display entity name as fixed row and scroll other cols horizontally - can be simply integrated with JS - source

Common caveats

  • inline-block spaces: all whitespaces in HTML source code between inline-block elements will be displayed in the result page! It is the feature of inline elements. Solutions (source):
    • remove spaces in the source code
    • ommit closing tag if it is possible (for example in <li> items)
    • set the font size of elemets to zero
Vytvořil 10. října 2013 ve 21:25:30 mira. Upravováno 7x, naposledy 3. ledna 2015 ve 20:41:24, mira


Diskuze ke článku

Vložení nového komentáře
*
*
*