Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Having a problem targeting certain div's...
Old 04-22-2011, 12:20 AM Having a problem targeting certain div's...
Novice Talker

Posts: 7
Trades: 0
So I'm trying to design my first website, I'm looking to add social icons to my site like twitter and facebook. But having a problem targeting these div's. I was able to target the twitter icon fine, but than when I tried to make a div for the facebook icon no values seem to be working at all.

I basically have one div targeting the twitter icon like this with the margin values to put it exactly where I want it. Than have another div for facebook but that doesn't do anything.

Html

<div id="twitter">
<li><a href="#"><span><img src="http://tycoontalk.freelancer.com/images/twitter-bird.png" /></span></a></li>
</div>

css

#twitter {

float:left;
position: absolute;
margin: -508 60 50 1025;

}

But than my facebook div isn't doing anything.

html

<div id="facebook">
<h3<<li><a href="#"><span><img src="http://tycoontalk.freelancer.com/images/facebook-icon.png" /></span></a></li>
</div>

css

#facebook {

float:left;
position: absolute;
margin: -708 160 50 1125;

}

Why can I not target this div like I did with the twitter div?

Last edited by jesbweb; 04-22-2011 at 12:23 AM..
jesbweb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-22-2011, 12:51 AM Re: Having a problem targeting certain div's...
Novice Talker

Posts: 7
Trades: 0
Lol, nevermind. I forgot to close that facebook css } tag :/
jesbweb is offline
Reply With Quote
View Public Profile
 
Old 04-22-2011, 04:39 AM Re: Having a problem targeting certain div's...
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Hi jesbweb, the line inside the div contains multiple HTML errors! Get into the habit of checking your page implementations - there are free online resources for this - search "w3 page validator" and "w3 css validator".
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE

Last edited by PaulW; 04-22-2011 at 10:25 AM..
PaulW is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Having a problem targeting certain div's...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.84665 seconds with 12 queries