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 Navbar links html css

SUNRAI

Established
Joined
Feb 1, 2018
Messages
453
Reaction
37
Age
20
Ayaw pong mag center at maging white ng text ko saka hindi rin gumagana yung mga links sa code ko.
Yung code po na ginamit ko dyan ay example na binigay ng teacher namin patingnan naman po.

Saka eto po yung output example na binigay ng teacher namen (Pic sa baba)


 

Attachments

Ipasok mo kasi yung name sa a tag

Yung code mo kasi

<a href='#'></a>home

Dapat

<a href='#'>home</a>

Tas yung width mo sa css na navbar kulang ng close tag walang ;
 
Last edited:
1 Comment
S
SUNRAI
salamat po naayos kona
 

austinyohan

Journeyman
Ok na yung html mo, ipasok mo lang yung text sa loob ng href attribute :)

<div class="navbar-links">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="contact.html">Contact Me</a></li>
</ul>
</div>
*****************************************************************************************
tapos mejo malaki yung padding sa navigation links mo bawasan mo lang ng konte :)

.navbar-links li a{
text-decoration :none;
color: white;
padding: 20px;
display: block;
text-align : center;
}

1606442623953.png
 

Attachments

Last edited:
1 Comment
S
SUNRAI
salamat po fixed na salamat
 
Di nakapasok sa tag yung Home at iba pa nasa close tag siya ng </a> dapat nasa pagitan.

Para maging white text lagyan mo style like

<li><a href="#section1" style="color:white">Home</a></li>
 
Comment

Online statistics

Members online
1,769
Guests online
2,242
Total visitors
4,011

Forum statistics

Threads
1,012,976
Messages
17,365,723
Members
1,485,954
Comments
681,336
Attachments
1,137,403
Profile posts
96,450
Top