# CSS DIV Link?

**URL:** <https://forum.kirupa.com/t/css-div-link/230770>\
**Category:** web dev\
**Created:** [June 28, 2007, 8:48pm UTC](https://forum.kirupa.com/t/css-div-link/230770 "2007-06-28T20:48:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpearson311](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Post date:** [June 28, 2007, 8:48pm UTC](https://forum.kirupa.com/t/css-div-link/230770/1 "2007-06-28T20:48:07Z")

</div>

Hello all:

I have a div called #maincontent and I also have #maincontent p set up like so:

```auto
#maincontent p{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#7a7674;
margin:5px 30px 0px 40px;
}

```

My question is, if I want to style links in the #maincontent p, what is the syntax? I’ve tried:

#maincontent p:link  
#maincontent:link p

and other combinations, but I can’t get it to work. Any help would be appreciated. Thanks!

JPearson311
