What's new

Closed Html codes

Status
Not open for further replies.
think outside the box daw sir, eh lahat ng mentors ko css daw solusyon pero sabi prof namin kaya daw yan madali lang
think outside the box?

can you check this one out?
<style>
.square{
width:48%; height:200px; margin:4px; border:1px solid black; float: left
}
.red {
background-color: red;
}
.yellow {
background-color: yellow;
}
.blue {
background-color: blue;
}
.green {
background-color: green;
}
</style>

<div class="square red"></div>
<div class="square yellow"></div>
<div class="square blue"></div>
<div class="square green"></div>

upload_2018-8-2_11-19-42.png
 

Attachments

think outside the box daw sir, eh lahat ng mentors ko css daw solusyon pero sabi prof namin kaya daw yan madali lang

Let say possible nga, his solution were already away from the industry standards and best practices. Hindi sensible yung pinapagawa niya sa inyo, and does not make you a good programmer. Closest possible solution lang jan ay inline styling but still css pa rin yun. Hindi ka pwede mag define ng dimension na (200x200) sa box ng hindi ka gagamit ng css. Sira ulo lang talaga prof mo hindi siya magaling.
 
think outside the box daw sir, eh lahat ng mentors ko css daw solusyon pero sabi prof namin kaya daw yan madali lang
baka naman kasi ang gagawin dyan ay inline style kaya sabi ng prof nyo di na kelangan ng css, pwede yan mangyari yung di gagamit ng css or cascading style sheet, ang gagamitin mo dyan para malagyan ng style ay "inline style ang gawin mo direktang design agad sa mga div or span, search mo na lang sa google yung "inline style" Good luck.
 
baka naman kasi ang gagawin dyan ay inline style kaya sabi ng prof nyo di na kelangan ng css, pwede yan mangyari yung di gagamit ng css or cascading style sheet, ang gagamitin mo dyan para malagyan ng style ay "inline style ang gawin mo direktang design agad sa mga div or span, search mo na lang sa google yung "inline style" Good luck.
Check ko nga po code mo
 
Status
Not open for further replies.
Back
Top