Anyx Posted June 30, 2018 Share Posted June 30, 2018 What is this tag found in MOFH templates: <div class="div">? And what does it do? Searched on Google and found nothing, sorry but I am not very experienced with these stuff. Quote Link to comment Share on other sites More sharing options...
mike Posted June 30, 2018 Share Posted June 30, 2018 2 hours ago, PCTipsGR said: What is this tag found in MOFH templates: <div class="div">? And what does it do? Searched on Google and found nothing, sorry but I am not very experienced with these stuff. What templates ? " <div> " is just a division on the html file. And " class " is just to define what css should be used. ========== CSS File ================ .head{ Lorem ipsum; } .div{ whatever its here } Quote Link to comment Share on other sites More sharing options...
Anyx Posted June 30, 2018 Author Share Posted June 30, 2018 1 minute ago, mike said: What templates ? " <div> " is just a division on the html file. And " class " is just to define what css should be used. ========== CSS File ================ .head{ Lorem ipsum; } .div{ whatever its here } No I mean <div class="div">, div is used both times, one for the HTML division and one as a class, so what does it do? In MyOwnFreeHost templates it is present. Quote Link to comment Share on other sites More sharing options...
einet Posted July 1, 2018 Share Posted July 1, 2018 10 hours ago, PCTipsGR said: No I mean <div class="div">, div is used both times, one for the HTML division and one as a class, so what does it do? In MyOwnFreeHost templates it is present. The .div class is used to customize the div table separate add colors anything you want to add to that <div> colors, margins, etc all depends example: in css: .div { color:red; background:black; padding:5px; } This in CSS would indicate to the web that the <div class = "div"> would add the color in the text in red, the color of the background of the div in black and the internal space of 5px as it is said and everything depends on what you want customize in that div Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.