Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » help with XHTML/css and divs


help with XHTML/css and divs

Reply
  #1 (permalink)  
Old 04-05-07, 11:31 AM
aburrows182 aburrows182 is offline
Newbie Coder
 
Join Date: Jul 2004
Location: Ashtead, Surrey, UK
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
help with XHTML/css and divs

Hi I did my first part of the design in photoshop and sliced it all up.

Then started to code the whole site use css and div tags.

It went ok and then I noticed in IE and firefox one of the divs is not in its correct position at all.

I normally use PSPAD but opted for dreamweaver so i could see as I changed stuff.

The website is at http://www.mvyv.co.uk/beta/index.html

the code for it is:

HTML Code:
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >

<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250" />
  <meta name="generator" content="PSPad editor, www.pspad.com" />
  <title>Mole Valley Youth Voice</title>
    <style type="text/css" media="screen">
@import "style.css";
@import "main_nav.css";
</style>
  </head>
<body>
<!-- HEADER -->
<div id="header_container">
		<div id="date"><div id="date_header">Todays Date:<br />
		  Junior Youth Voice Website</div>
		</div>
		<div id="head_pt1"></div>
	<div id="head_pt2"></div>
	<div id="next_event">2165195191</div>
	<div id="head_pt3"></div>
	<div id="navcontainer">
	<ul>
	<li><a href="">Home</a></li>
	<li><a href="">About</a></li>
	<li><a href="">Meetings</a></li>
	<li><a href="">Events</a></li>
	<li><a href="">Media</a></li>
	<li><a href="">Funding</a></li>
	<li><a href="">Forum</a></li>
	<li><a href="">Contact</a></li>
	</ul>

	</div>	
	<div id="end_corner"></div>
	<div id="main_body"></div>
	
</div>
<!-- HEADER END -->
</body>
</html>
the main css is

css Code:
  1. body{margin:0; background-image: url(bg.jpg); }
  2.  
  3. /*HEADER LEFT SIDE */
  4.  
  5. #header_container
  6. {
  7. margin: 0;
  8. padding: 0;
  9. }
  10. #head_pt1
  11. {
  12. margin: 0;
  13. background-image:url(images/header_01.jpg);
  14. background-repeat:no-repeat;
  15. height: 44px;
  16. width: 677px;
  17. }
  18.  
  19. #head_pt2
  20. {
  21. margin: 0;
  22. background-image: url(images/header_04.jpg);
  23. width: 677px;
  24. height: 79px;
  25. }
  26. #head_pt3
  27. {
  28. margin: 0;
  29. background-image: url(images/header_07.jpg);
  30. width: 500px;
  31. height: 4px;
  32. }
  33. #end_corner
  34. {
  35. margin: 0;
  36. float:left;
  37. background-image:url(images/nav_end_11.jpg);
  38. width: 64px;
  39. height: 29px;
  40. }
  41. /* RIGHT SIDE */
  42.  
  43. #date
  44. {
  45. float: right;
  46. position: static;
  47. width: 183px;
  48. height: 44px;
  49. background-image:url(images/header_03.jpg);
  50. background-repeat: no-repeat;
  51. }
  52. #date_header
  53. {
  54. margin:0;
  55. font-family: tahoma;
  56. font-size: .6em;
  57. text-align: right;
  58. padding-right: 2px;
  59. }
  60. #next_event
  61. {
  62.  
  63. float: right;
  64. width: 155px;
  65. height: 112px;
  66. background-image:url(images/header_06.jpg);
  67. background-repeat: no-repeat;
  68. }
  69. /* MAIN BODY */
  70. #main_body
  71. {
  72. margin: 0;
  73. }

if any one can help its the #next_event id thats playing up and #end_corner

. If anyone could help me with this, that would be great as I'm trying to learn this new style compared to other methods.

best regards

alex

Last edited by Nico; 04-05-07 at 11:59 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Overlapping Divs in IE xxvatarxx CSS 1 02-12-06 05:46 AM
Divs, floats, and footers, oh my! loudsox CSS 3 07-22-04 05:04 PM
show/hide div's problem in Netscape lgmdm JavaScript 0 05-12-04 08:17 AM
Show/Hide DIV's Generated Dynamically cptn_spoon JavaScript 2 05-06-04 01:27 PM
Spreading out text once beneath 2 div's Arowana HTML/XHTML/XML 1 11-19-03 05:21 PM


All times are GMT -5. The time now is 08:56 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.