Jump to content
[MUST READ] Forum Rules ×

What is the <div class="div"> tag in MOFH templates?


Recommended Posts

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

}

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...