Skip to content

A clone from oNew York Time page . Display Flex and Display grid is used to align Items and create exact same replica.

Notifications You must be signed in to change notification settings

Krishnabot/NYTimes-Clone

Repository files navigation

Positioning and Floating Elements

This assignment consists of making a clone of a New York Times article page.

Screenshot_2020-01-21 NYTimes Clone

Details

Nav Bar

  • The Nav bar have the NewYork Times headline (in center) ,and have two icons and two buttons(login and subscribe) on left and right respectively.(The nav-bar was created with the tag <nav> , and the buttons and icons have their sepreated <div> tags)

Main Content Section

  • The main content of the page (being the actual article and the right side sections) was made by creating some <section> tags only divided by the Advertisement spaces which are individual <div> tags.

  • Since the main article container has already a fixed width and its container won't change even if the viewport does (because of it being at its minimal width already) the horizontal centering was achieved by using the padding property with an absolute value to its left and so allow the aside boxes to align using only the float property.

  • The top bar icons were made using Font Awesome and were contained and aligned with flexboxes

  • As for each image, they were wrapped inside <figure> tags and took advantage of the <figcaption> elements to describe what was shown above.

The <aside> tag and float

  • One of the main requirement of this project is to create <aside> tag and use css property Float on it.

  • Another <section> was created with the id #grid-boxes to create two coloums with 3 imgs in each of it.

  • Right side content created using the <aside> tag and used the property float:right on it.

footer and footnotes

  • The <footer> tag was created for the content at the bottom. In this we have created multiple <divs> with multiple <uls> and <lis>

  • Uses the New-york-Times logo as the heading of the <footer> and used The font awesome icons at the right side for the very last <li>s.

Built With

  • HTML5, CSS3
  • VSCode

Live Demo

https://krishnabot.github.io/NYTimes-Clone/

Authors

👤 Jaspreet Singh

👤 Krishna Prasad Acharya

About

A clone from oNew York Time page . Display Flex and Display grid is used to align Items and create exact same replica.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published