What's new
  • Welcome to PHCorner forums. Take a moment to sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help Help sa html

SUNRAI

Established
Joined
Feb 1, 2018
Messages
405
Reaction
37
Age
20
Paano poba mag lagay ng margin sa gilid sa giling nung division Backround?
 

Attachments

Kentify

Moderator
padding-left:10px;
padding-right:10px;

you can put it as inline or in your .css file..

can you also put the code of that html?
 
Comment
Paano po kaya ilalagay yung hobbies na text dun sa top right corner
Depende so may question ako sayo,
1. Alam mo na ba yung block and inline elements?
2. Yang hobbies na section last na ba yan? wala kana ba ilalagay sa baba niya?
3. Nakapasok ba sa container ang mga text mo ex. <div>?

Marami kasi pwedeng approach na gawin para magawa ang gusto mo, like css flex, grid or simply inline level elements, pero sa current skill level mo di mo pa yun alam. Pero may mga hotfix pa naman na pwedeng gawin para magawa yan.


16.PNG
CSS:
div {
    border: 2px solid black;
    width:325px;
    height: 100px;
    margin-left: 20px;
}

.one {
    background: lightblue;
    display: inline-block;
}

.two {
    background: lightgreen;
    display: inline-block;
}

.three {
    background: lightyellow;
    margin-top: 25px;
}

.four {
    background: lightgray;
    margin-top: 25px;
}
 

Attachments

Last edited:
1 Comment
S
SUNRAI
Nasa loob po nang div yung text
 
Last edited:

Online statistics

Members online
1,897
Guests online
2,190
Total visitors
4,087

Forum statistics

Threads
843,358
Messages
16,675,658
Members
1,466,140
Top