📜 ⬆️ ⬇️

HTML-CSS framework "NTH"

I spread the framework written for myself.
Reason for creation: tired every time when creating a new site to do the same thing - to redo my favorite Tripoli (correcting its bugs, add markup properties); Add jQuery JS framework, create a typical HTML structure. I decided to combine the elements I used frequently into one universal whole.
He did for himself, that is - neat and good.

File structure


  [css] folder with style files
   | - ie6.css stylesheet for Internet Explorer 6
   | - ie7.css stylesheet for Internet Explorer 7
   | - print.css style file for printing devices
   | - reset.css file that resets browser styles
 [img] folder for decorative images
   | - blank.gif single-pixel transparent gif
 [js] java scripts folder
   | - jquery.js jQuery JS framework
   | - script.js script file
 [pict] folder for informative images
 iepngfix.htc troubleshooting IE6 with PNG
 index.html html layout
 style.css BASIC style file 

Notes and Explanations

HTML


HTML is stacked non-personally, semantically and validly (XHTML 1.0 Transitional).
This is a fixed-width two-column layout, in which the left narrow column ( .sidebar ) in the HTML stream follows the main part ( .content ).
Watch the layout .
The index.html file has the following structure:

  # all-site
   #header
     .site-logo
     .site-description
   #navigation
   #wrapper
     .content
       . content-block
     .sidebar
       .sidebar-block .search
       .sidebar-block .login
       .sidebar-block .contact
       .sidebar-block .advert
   #footer 

The div tags are annotated with classes (ids) of the closing div .
As you can see, the .sidebar block has several typical nested blocks.

CSS


Based on the Tripoli framework. There are several style files, all of which have been modified.
')
Features and differences from Tripoli
Structure style.css (main style file):

  / * Name, file details * /
 / * Memo to the coder * /
 / * data on the colors used in the layout * /
 / * BLOCKS * /
 [Description of block structure]
 / * TYPOGRAPHY * /
 [typographical rules]
   / * SIDEBAR ONLY * /
   [typographical rules for .sidebar]
 / * SERVICE * /
 [service rules]
 / * DESIGN ELEMENTS * /
 [design elements of additional blocks] 

Javascript


The NTH framework has on-board jQuery 1.2.6.

Features

License


NTH-framework is licensed under the Creative Commons Attribution-ShareAlike (by-sa) license
This type of license allows you to process, correct and develop a work, even for commercial purposes, as long as authorship is indicated and all derivative works are licensed under similar conditions.

Download NTH-framework


Download from my blog .

Afterword


Bugs are not excluded (and just problems) layout. I would be glad if you pay attention to them. Actually, creating this topic, I really hope that my colleagues will point out problems and errors, possible additions.

UPD: post moved to the blog "Web-development"

Source: https://habr.com/ru/post/39279/


All Articles