PDA

View Full Version : Text outside the DIV?


jcdevelopment
03-31-2008, 05:29 PM
Here is tha page in question

http://keepdallasbeautiful.org/events.html

I know im doing this in an Un-orthodox manner, but i inherited this site and im make adjustments.

Heres the problem, the link i created and styled is for some reason going outside of the div, im not sure why.

here is the style to the link

<a href="#" onclick="showPop();" style="clear:right; float:right; margin-right:10px;">Sign Up</a>

and here is everything together

<div class="evenEvent">
<a href="#" onClick="showPop();">EarthFest -- April 18th </a>
<p class="text">EarthFest is the premier Earth Day celebration for Dallas’ downtown community, offering an opportunity to get out of the office, celebrate, learn, and appreciate the environment on which we depend. Every year, Keep Dallas Beautiful partners with the City of Dallas, the Environmental Protection Agency, and the Downtown Improvement District to host the largest Earth Day event in North Texas. <a href="http://dallascityhall.com/oeq/EarthFest/earthfest_brochure.pdf" target="_blank">Click here for more information . . . </a> <a href="#" onclick="showPop();" style="clear:right; float:right; margin-right:10px;">Sign Up</a>
</p></div>

could it for some reason be the JS?

Thanks for any help guys!!

effpeetee
03-31-2008, 05:43 PM
Just to start with, there are a number of errors.

http://validator.w3.org/check?uri=http%3A%2F%2Fkeepdallasbeautiful.org%2Fevents.html&charset=%28detect+automatically%29&doctype=Inline&group=0

Frank

harbingerOTV
03-31-2008, 05:51 PM
oddly enough, IE isn't clearing the float but FF is. Fun ;)

try this approach instead:

<a href="#" onclick="showPop();" style="display: block; text-align: right; margin-right: 10px;">Sign Up</a>

jcdevelopment
03-31-2008, 06:45 PM
Ahh, you rock thank you, that did it, i wonder why it wasnt clearing it oh well...


effpeetee:: I know there are alot of errors, thank god i didnt create this site, i would be fired, but im not concerned with that until we re-do the site, later on, thanks though!!

effpeetee
03-31-2008, 07:00 PM
effpeetee:: I know there are alot of errors, thank god i didnt create this site, i would be fired, but im not concerned with that until we re-do the site, later on, thanks though!!

Looking at the code, you have my sympathy. Apart from any errors, it looks very daunting.

Frank

jcdevelopment
03-31-2008, 07:03 PM
Well this actually came from a "Professional" web development company, and our company owned it so we took it back after months of them not making updates, and now i have a long road ahead of me, not that im perfect but you know....