Jump to content

Est

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Est

  • Rank
    Newbie
  1. Est

    Position & centering <div>

    Hi all, i am learning html and css from 3wschool, and i am a little lost. i have read all html and css tutorial section and really dont know why i dont understand, thanks for your help & time. Right now i am trying to understand how place some <div> where i want in the page. as you can see i have made 2 div (objects) that will contain things i want be able to place them in everywhere in the "main zone". (or any zone) ?) I cant get my objects centered in the div ?) there is a way to place a div to 100px on the right ( without use margin or padding ) ?)Am i in error, if i think to use div as a box sistem to place things where i want? ?) can someone make a "card" with all the useful and usable div things ? the site talk only about the align attribute and its not supported by html5.. https://www.w3schools.com/tags/tag_div.asp Searching for a solution i found out this site https://css-tricks.com/centering-css-complete-guide/ They use a line of code i didnt find on 3wschool, did i miss it? There they use .child {ยท position: absolute;top: 50%; left: 50%; transform: translate(-50%, -50%);} i am also pretty confused by https://www.w3schools.com/cssref/playit.asp?filename=playcss_position i attach a screenshot of his behaviour , it is right? if it is i am fully lost.
×