Jump to content


Photo

centered footer text / links php conflict - have researched every forum


  • Please log in to reply
1 reply to this topic

#1 sbair1

sbair1

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 18 June 2012 - 08:09 AM

Something in my code seems to be creating a conflict that will not permit me to center the footer text and links. I'm wondering if something else in the css is creating the conflict. The original designer is out of state and is not able to help. I have been pulling my hair out on this. Can you please help?

This is my footer css and footer.php, respectively:

#footer {
clear: both;
width: 100%;


}
#footer-nav {
margin: 0;
text-align: center;
}


(note: I have also tried "text-align: center;" under the footer# heading)

<div class="push"><!-- --></div>
</div><!-- wrappertwo -->
<div class="footer">

<div class="footer"><a href="/about-us/">About Us</a> <a href="/blog/">Blog</a> <a href="/contact-us/">Contact Us</a></div>
2140 E Southlake Blvd., Ste L. Southlake, TX 76092 | 817-898-1488 |
Designed by <a href="http://www.marbleoce...ean.com">Marble Ocean</a>
</div><!-- #footer -->

#2 DoC

DoC

    Young Padawan

  • Members
  • Pip
  • 63 posts
  • Gender:Male

Posted 06 May 2013 - 05:52 AM

<div class="push"><!-- --></div>
</div><!-- wrappertwo -->
<div class="footer">

<div class="footer"><a href="/about-us/">About Us</a> <a href="/blog/">Blog</a> <a href="/contact-us/">Contact Us</a></div>
2140 E Southlake Blvd., Ste L. Southlake, TX 76092 | 817-898-1488 |
Designed by <a href="http://www.marbleoce...ean.com">Marble Ocean</a>
</div><!-- #footer --> 

It doesnt seem like you have assigned the class "#footer-nav" to anything in your html above. So your text-align won't work. And im not sure if you know but you have a div inside of a div between your code. I have a feeling there may be something you coded earlier that isn't allowing your alignment to work.

 

Do you have more of the code? Or a link to the page described?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users