mguise
11-03-2011, 10:15 PM
Using CSS does anyone have any idea how to make a header a link and then place that link/header in a paragraph and have everything look normal?...and validate.
I have been fighting with this for hours.
This is what I have so far it does not work
.pinline {
display: inline;
}
.h2home {
text-transform: none;
color: #000;
font-style: normal;
font-size: 1em;
text-decoration:underline;
display: inline;
}
.h2home A {
COLOR: #000;
text-decoration:none;
font-weight: normal;
font-size: 1em;
text-decoration:underline;
display: inline;
}
.h2home A:hover {
COLOR: #59AFE2;
text-decoration:underline;
font-weight: normal;
font-size: 1em;
display: inline;
}
Here is the html
<p class="pinline">Whether it’s
<h2 class="h2home"><a href="graphicdesign.html">brand marketing</a></h2>
or <h2 class="h2home"><a href="web.html">web development</a></h2>, as a premier Iowa design company we offer a wealth of skills, resources and talent. If you are searching for services internationally, nationally or locally you have come to the right place.</p>
<p class="pinline">Developing successful, solid, striking and userriendly
<h2 class="h2home"><a href="webdesign.html">websites</a></h2> is our specialty. To that end we will construct a <h2 class="h2home"><a href="mobile.html">mobile</a></h2> version of your website that is effortless to navigate. We offer you the ability to take control and update your <h2 class="h2home"><a href="cms.html">website content</a></h2> with relative ease. We’ve got your secure online E-Commerce
store covered. <h2 class="h2home"><a href="custom.html">Custom applications</a></h2> or <h2 class="h2home"><a href="flash.html">Flash</a></h2>
powered experiences, we can build it from the ground up
<p>Utilizing <a href="social.html">social media tools</a>, <a href="analytics.html">web analytics</a>, <a href="seo.html">search engine optimization or marketing</u></a> your website will reach your target audience, in turn strengthening your bottom line. </p>
I have been fighting with this for hours.
This is what I have so far it does not work
.pinline {
display: inline;
}
.h2home {
text-transform: none;
color: #000;
font-style: normal;
font-size: 1em;
text-decoration:underline;
display: inline;
}
.h2home A {
COLOR: #000;
text-decoration:none;
font-weight: normal;
font-size: 1em;
text-decoration:underline;
display: inline;
}
.h2home A:hover {
COLOR: #59AFE2;
text-decoration:underline;
font-weight: normal;
font-size: 1em;
display: inline;
}
Here is the html
<p class="pinline">Whether it’s
<h2 class="h2home"><a href="graphicdesign.html">brand marketing</a></h2>
or <h2 class="h2home"><a href="web.html">web development</a></h2>, as a premier Iowa design company we offer a wealth of skills, resources and talent. If you are searching for services internationally, nationally or locally you have come to the right place.</p>
<p class="pinline">Developing successful, solid, striking and userriendly
<h2 class="h2home"><a href="webdesign.html">websites</a></h2> is our specialty. To that end we will construct a <h2 class="h2home"><a href="mobile.html">mobile</a></h2> version of your website that is effortless to navigate. We offer you the ability to take control and update your <h2 class="h2home"><a href="cms.html">website content</a></h2> with relative ease. We’ve got your secure online E-Commerce
store covered. <h2 class="h2home"><a href="custom.html">Custom applications</a></h2> or <h2 class="h2home"><a href="flash.html">Flash</a></h2>
powered experiences, we can build it from the ground up
<p>Utilizing <a href="social.html">social media tools</a>, <a href="analytics.html">web analytics</a>, <a href="seo.html">search engine optimization or marketing</u></a> your website will reach your target audience, in turn strengthening your bottom line. </p>