j05hr Posted November 24, 2009 Share Posted November 24, 2009 How can I make this line of code have id="link" $content .= '<a href="buying.php?pg=' . $i . '">' . $i . '</a>' . " "; Link to comment https://forums.phpfreaks.com/topic/182843-adding-html-to-a-link/ Share on other sites More sharing options...
mikesta707 Posted November 24, 2009 Share Posted November 24, 2009 $content .= '<a id="link" href="buying.php?pg=' . $i . '">' . $i . '</a>' . " "; ? Link to comment https://forums.phpfreaks.com/topic/182843-adding-html-to-a-link/#findComment-965056 Share on other sites More sharing options...
Anzeo Posted November 24, 2009 Share Posted November 24, 2009 I'm not sure what you mean, but I guess like this: How can I make this line of code have id="link" $content .= '<a id="link" href="buying.php?pg=' . $i . '">' . $i . '</a>' . " "; Otherwise, please provide more information on what exactly you want Link to comment https://forums.phpfreaks.com/topic/182843-adding-html-to-a-link/#findComment-965057 Share on other sites More sharing options...
j05hr Posted November 24, 2009 Author Share Posted November 24, 2009 Hmm, basically this page www.sampleestateagent.com/buying.php if you click on 3 numbers of properties per page and the links come up to change the page, they're white because of the css is set to do that but with id="link"it's meant to be black but it's still white Link to comment https://forums.phpfreaks.com/topic/182843-adding-html-to-a-link/#findComment-965069 Share on other sites More sharing options...
mikesta707 Posted November 24, 2009 Share Posted November 24, 2009 oh your trying to alter its CSS? try the class attribute rather than the id attribute. Link to comment https://forums.phpfreaks.com/topic/182843-adding-html-to-a-link/#findComment-965090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.