Editing the page title <!DOCTYPEhtml> <htmllang="en"> <head> <metacharset="utf-8"/> <title>Diarywebapplication</title> <metaname="author"content="StephenRice"/> <!--Setviewporttoensurethispagescalescorrectlyonmobiledevi ces--> <metaname="viewport"content="width=device-width,initial-scale=1.0" /> <linkrel="stylesheet"href="tma03.css"/> <!--StartTMA03application--> <scriptsrc="tma03.js"></script> </head> <body> <h1>Diarywebapplication</h1> <main> <sectionid="text"class="button"> <buttontype="button">Addentry</button> Changing diaries layout Below is the CSS rule we added to achieve this. @mediaonlyscreenand(min-width:600px){ section.entry{ width:50%; float:left; } }
For mobile device I arranged each diary in its row. To achieve this I used the CSS below, @mediaonlyscreenand(max-width:600px){ section.entry{ width:100% } }
End of preview
Want to access all the pages? Upload your documents or become a member.