- This topic is empty.
-
AuthorPosts
-
April 17, 2011 at 5:57 am #32385CryptexParticipantApril 18, 2011 at 10:14 am #50431CryptexParticipant
nobody can help ? :/
April 18, 2011 at 10:52 am #50433lyleyboyMemberI think you need to give more detail.
Can you post your code? or a link to the site?
April 18, 2011 at 1:23 pm #50443ylex1ParticipantI think you can also give it a margin-left: -10px;
April 18, 2011 at 5:17 pm #50455CryptexParticipantouuu thx for the help…
so its now left but it is possible to make the fiel behind the other one?here is the test website..
April 19, 2011 at 4:42 am #50472CryptexParticipantthx wlfcry911 :)
now its valide too ^^http://xtreme-designs.de/testali/
now im not the best css coder to see how to use another tags as divs :/
did you have sites to learn to use different tags for different situationspeace
April 19, 2011 at 7:05 am #50473chrisburtonParticipantYour simple layout seems a little more problematic than just using margins to try to fix everything. Floats cleared? Why all the negative margins?
April 19, 2011 at 7:18 am #50474CryptexParticipantwhy problematic?
why not negative margins? WC3 shows no problems :/can u show an idea how it is right? :/
April 19, 2011 at 7:24 am #50412chrisburtonParticipantIt may show validation however the markup is not correctly structured. To start off you need to rid the unnecessary div that I quickly saw after skimming the code and clear your floats.
April 19, 2011 at 7:33 am #50413CryptexParticipanthmm u mean with unnecassary divĀ“s like
div id=”main-trenner”
#main-trenner { background: #000; width: 730px; height: 15px }
to make the black a black area to show a separation between the slider an the content?
i dont know how to part it in another way?! :/can u help me? :)
April 19, 2011 at 8:14 am #50415chrisburtonParticipantCopy/Paste this. Even though I don’t agree with my code and starting from scratch may be the appropriate action.
* { margin: 0; padding: 0; }
body { font-family: Georgia, serif; color: #FFF;
background: #FFF }
#page-wrap { width: 800px; margin: 0 auto; padding: 0; }
#header { background: #6a0202; width: 275px; height: 20px; float: left;
color: #FFF; line-height: 40px; font-size:30px; margin: 0 auto;
padding: 20px; text-align: center; }
nav a {width: 100px;}
a.cta { width: 100px; color:#000; height:45px; float: left;
line-height:60px; text-decoration:none; font-size:20px; font-weight:bold;
text-align:center; }
a:hover.button { color:#6a0202; }
nav img { border: none; margin: 0 auto; }
nav a:hover img { margin-top: -45px; }
#main-bg { background: #000; width: 750px; margin: 0 auto; padding: 10px; clear: both; }
#main-slider { background: #6a0202; width: 730px; padding: 10px; }
#main-trenner { background: #000; width: 730px; height: 10px; }
#main-content { background: #6a0202; width: 730px; padding: 10px; }
#main-footer { width: 700px; color: #000; text-align: right; }
p { line-height: 20px; margin: 0 auto;}April 19, 2011 at 8:35 am #50416CryptexParticipantohh thx for your time to help :)
i have.. now its look likehttp://xtreme-designs.de/testali/
the header must behind the contentslider
April 19, 2011 at 8:39 am #50418chrisburtonParticipantNot sure what you mean but here is an edit to the code above. Replace this code with the old.
* { margin: 0; padding: 0; }
body { background: #FFF; font-family: Georgia, serif; }
#page-wrap { width: 800px; margin: 0 auto; padding: 0; }
#header { background: #6a0202; width: 275px; height: 20px; float: left;
color: #FFF; line-height: 40px; font-size:30px; margin: 0 auto;
padding: 20px; text-align: center; }
nav a { }
a.cta { width: 100px; color:#000; height:45px; float: left;
line-height:65px; text-decoration:none; font-size:20px; font-weight:bold;
text-align:center; }
a:hover.button { color:#6a0202; }
nav img { }
nav a:hover img { }
#main-bg { background: #000; width: 100%; margin:0 auto; padding: 20px 0; clear: both;}
#main-slider { background: #6a0202; width: 730px; margin:0 auto; padding: 10px; }
#main-content { background: #6a0202; width: 730px; color: #FFF; margin: 20px 0 0 25px; padding: 10px; }
#main-footer { width: 800px; color: #000; margin: 0 auto; text-align: right;}
p { line-height: 20px; margin: 0;}April 19, 2011 at 8:42 am #50419chrisburtonParticipantReferring to what wolfcry has stated which is correct, you have HTML5 elements in an xHTML document. If you want to use HTML5, you need to change your doctype.
April 19, 2011 at 8:45 am #50420CryptexParticipanti repace it… hmm it looks different now :)
i mean like herehttp://img69.imageshack.us/img69/7274/88258899.jpg
the background of the logo must a little bit left an a litte blit down like on the screenshoot
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.