Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-12-2010, 11:42 AM   PM User | #1
snowdude2004
New Coder

 
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 0 Times in 0 Posts
snowdude2004 is an unknown quantity at this point
Issues with text centre

Couldn't see the completely retarded section so went for this forum subsection.

After taking a long break away from coding I came back to my site today to try and improve the overall looks and added a sitemap at the bottom. I'm trying to centre the hyperlinks without affecting the copyright part underneath and other images I may add to the footer because I would like to add something like these icons aligned to the right when I am done. Obviously after its all properly coded.





The url for the page is http://www.devious-design.co.uk/final_test.html
snowdude2004 is offline   Reply With Quote
Old 05-12-2010, 12:08 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Change
Code:
<p>
<br>

<a href="index.html">Home</a> 
<a href="contact.html">-Contact</a> 
<a href="services.html">-Services &amp; Prices</a> 

<br>
<br>
	Devious Design&copy; 2009. All rights reserved.
</p>
to
Code:
<ul>
<li><a href="index.html">Home</a> </li>
<li><a href="contact.html">-Contact</a> </li>
<li><a href="services.html">-Services &amp; Prices</a> </li>
</ul>

<p>
	Devious Design&copy; 2009. All rights reserved.
</p>
and then add the following into your CSS.
Code:
#footer ul{
list-style:none;
text-align:center;
}
#footer ul li{
list-style:none;
display:inline
}
In that way, your markup will become a little more semantic!
(You may add margin/padding, if required.)
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 05-12-2010, 01:26 PM   PM User | #3
snowdude2004
New Coder

 
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 0 Times in 0 Posts
snowdude2004 is an unknown quantity at this point
Cheers for your help. Just updated that and realised it then started using the ul and li tags etc from the menu so had to change css to what it should of been orginally and sorted that however now I have a space between the content container and the footer container and my text it now just out of the footer. How the hell did that happen? :|
snowdude2004 is offline   Reply With Quote
Old 05-12-2010, 02:45 PM   PM User | #4
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Add
Code:
*{
margin:0;
padding:0;
}
into your CSS to remove all browser specific default values of margins and paddings from every elements. Or just add margin:0; to #footer ul, if you need to keep everything else and remove specifically from this element.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:19 PM.


Advertisement
Log in to turn off these ads.