Hi, I have a really strange problem that I can't figure out.
I'm fairly new to webdesign and am working on my website that I have yet to upload. Here's the deal:
In the navigation bar I have three differently shaped elements as links with text in them. A square, a circle and a triangle. The link text lines up perfectly in the square and circle however not in the triangle.
It aligns right for some reason,even though the css for all three elements in the navigation are the same. I tried adding some padding-right to the triangle, which of course doesn't stay the same shape anymore.
I would greatly appreciate your input/help!
Here's the css for the navigation links:
nav a {
text-decoration:none;
text-transform:uppercase;
font-weight:bold;
font-size:20px;
line-height:200px;
color:#fff;
}
and here's the css for the triangle(the home button)
.home{
width:0;
height:0;
display:block;
float:right;
margin-left:20px;
border-right:130px solid transparent;
border-left:130px solid transparent;
border-bottom:200px solid #778899;
}
I'm fairly new to webdesign and am working on my website that I have yet to upload. Here's the deal:
In the navigation bar I have three differently shaped elements as links with text in them. A square, a circle and a triangle. The link text lines up perfectly in the square and circle however not in the triangle.
It aligns right for some reason,even though the css for all three elements in the navigation are the same. I tried adding some padding-right to the triangle, which of course doesn't stay the same shape anymore.
I would greatly appreciate your input/help!
Here's the css for the navigation links:
nav a {
text-decoration:none;
text-transform:uppercase;
font-weight:bold;
font-size:20px;
line-height:200px;
color:#fff;
}
and here's the css for the triangle(the home button)
.home{
width:0;
height:0;
display:block;
float:right;
margin-left:20px;
border-right:130px solid transparent;
border-left:130px solid transparent;
border-bottom:200px solid #778899;
}
