PDA

View Full Version : Text position issue.


Cian
08-28-2009, 12:43 PM
Hello all.
Been using dreamweaver now the past few days and slowly getting the hang of it. I am however having an issue with my text.
It seems to move downwards by several px when viewed in the browser.

Cheers.
Cian.

http://img193.imageshack.us/img193/8541/picture3tet.png

<body class="oneColElsCtr">
<div id="container">
<div id="mainContent">
<p><img src="../images/header.jpg" alt="header" width="1200" height="130" class="header" /></p>
<p><img src="../images/cmg_logo_web.jpg" alt="cmg_logo" width="289" height="107" class="cmg_logo" /></p>
<p><img src="../images/background_image.jpg" alt="background_image" width="1200" height="800" class="background_image" /><img src="../images/background_02.png" alt="trans_background" width="779" height="800" class="trans_background" /></p>
<p class="text_nav"><span class="text_spacing">HOME </span><span class="text_spacing">SERVICES </span> <span class="text_nav_spacing"><span class="text_spacing">ABOUT US</span></span> <span class="text_nav_spacing"><span class="text_spacing">CONTACT</span></span></p>
<p><img src="../images/footer.jpg" alt="footer" width="1200" height="80" class="footer" />
<p class="copyright">&copy; CMG DESIGNS 2009. ALL RIGHTS RESERVED. WEB DESIGN BY CMG DESIGNS &amp; INFINITY DESIGN.
<!-- end #mainContent -->
</p>
</div>
<!-- end #container --></div>
</body>
</html>

Corrosive
08-28-2009, 01:35 PM
Hi, looks like a great design :)

You appear to have wrapped your nav in a paragraph (<p>) tag and this has default margins and padding. Try using a list for a menu...

http://corrosiveonline.co.uk/tutorials_css_navigation.php

Cian
08-28-2009, 01:50 PM
Corrosive. Your a legend.
That got it sorted. Been driving me nuts all morning.
Thanks for your comment on the design.
Im a 2D / 3D artist by trade and have decided to build my own site.

Can't be that hard I said.:roll: Famous last words.


Cheers.
Cian.

Corrosive
08-28-2009, 01:54 PM
Corrosive. Your a legend.
That got it sorted. Been driving me nuts all morning.
Thanks for your comment on the design.
Im a 2D / 3D artist by trade and have decided to build my own site.

Can't be that hard I said.:roll: Famous last words.


Cheers.
Cian.

Ha, ha yes, Web design is a whole new discipline. You're doing well tho, keep it up :)