I am busy with making my layout in css but now I have a problem.
In IE the header of my site design is showing as it is supposed too.
But in Opera and Firefox there is a gab/space between the banner div box and the menu div box which is not supposed to be there.
Here is a link to my work in progress:
<!-- m --><a class="postlink" href="http://dev.doublejweb.net/doublejweb/index.html">http://dev.doublejweb.net/doublejweb/index.html</a><!-- m -->
The css file:
<!-- m --><a class="postlink" href="http://dev.doublejweb.net/doublejweb/doublejweb.css">http://dev.doublejweb.net/doublejweb/doublejweb.css</a><!-- m -->
Does anyone know how I would be able to remove the gab/space between those div boxes?
Also I have another question about my menu.
I have now a css based rollover but what I would like to have is that the links are in the code like:
<p><a href=http://www.webdeveloper.com/forum/archive/index.php/"index.php">Home</a><a href=http://www.webdeveloper.com/forum/archive/index.php/"Download s.php">Download s</a><a href=http://www.webdeveloper.com/forum/archive/index.php/"forum/">Forum</a></p>
Instead of the images and that they appear as images.
How would I do that in css?For your first question : #navbar p {
margin-top:0;
height: 34px;
width: 290px;
text-align: right;
position: relative;
top: 0px; right: 74px; left: 386px;
}
The answer to the second question kind of changes the answer to the first question. You shouldn't really have your navigation marked up as a paragraph, because... well, it's not a paragraph. It's actually an unordered list which should be marked up with the appropriate tags.
You can give each li an appropriate width and put the images in the background. I'm talking about something along the lines of this : <!-- m --><a class="postlink" href="http://bonrouge.com/br.php?page=rollover2">http://bonrouge.com/br.php?page=rollover2</a><!-- m -->
I say this changes the answer to the first question because if you do this, you won't have any 'p' tags giving you trouble with margins. If you follow my example, your ul won't have any top margin either, so you'll be fine (though you might want to give it a bottom-margin...
You might be able to put your text into the tags and make it invisible by putting it in span tags and coding the CSS appropriately - something like this : #navbar span {
visibility:hidden;
}
I hope this helps.Thank you. This is my first serious try at a completely css styled website and all my previous tries resulted in the same error over and over again.
But what I want is that I do not have any <IMG> tags within my html.
I have my menu now like this:
<div id="navbar">
<ul>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"index.php">Home</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"Download s.php">Download s</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"forum/">Forum</a></li>
</ul>
</div>
and now what I want is a rollover effect in them.
I already got the background I got it aligned right but now I somehow need to have that text visibility: hidden and then replaced with a foreground image that is hidden on rollover so you see the background.
I was wondering if this was possible.
if so I can still put in <span><div> tags and classes to get this but I do not want any images in it so I if I make a new design that will have just text buttons I can use a nice css switcher so you can switch site style.<!-- m --><a class="postlink" href="http://www.accessify.com/tools-and-wizards/list-o-matic/list-o-matic.aspthat">http://www.accessify.com/tools-and-wiza ... ic.aspthat</a><!-- m --> is not what I was looking for at all.
what I want is that the text is replaced via css with an images since I use buttons.nevermind.
I have the effect that I wanted using background images over background images and making the text hidden.
ANd again thank you bon for helping me out with that issue.
In IE the header of my site design is showing as it is supposed too.
But in Opera and Firefox there is a gab/space between the banner div box and the menu div box which is not supposed to be there.
Here is a link to my work in progress:
<!-- m --><a class="postlink" href="http://dev.doublejweb.net/doublejweb/index.html">http://dev.doublejweb.net/doublejweb/index.html</a><!-- m -->
The css file:
<!-- m --><a class="postlink" href="http://dev.doublejweb.net/doublejweb/doublejweb.css">http://dev.doublejweb.net/doublejweb/doublejweb.css</a><!-- m -->
Does anyone know how I would be able to remove the gab/space between those div boxes?
Also I have another question about my menu.
I have now a css based rollover but what I would like to have is that the links are in the code like:
<p><a href=http://www.webdeveloper.com/forum/archive/index.php/"index.php">Home</a><a href=http://www.webdeveloper.com/forum/archive/index.php/"Download s.php">Download s</a><a href=http://www.webdeveloper.com/forum/archive/index.php/"forum/">Forum</a></p>
Instead of the images and that they appear as images.
How would I do that in css?For your first question : #navbar p {
margin-top:0;
height: 34px;
width: 290px;
text-align: right;
position: relative;
top: 0px; right: 74px; left: 386px;
}
The answer to the second question kind of changes the answer to the first question. You shouldn't really have your navigation marked up as a paragraph, because... well, it's not a paragraph. It's actually an unordered list which should be marked up with the appropriate tags.
You can give each li an appropriate width and put the images in the background. I'm talking about something along the lines of this : <!-- m --><a class="postlink" href="http://bonrouge.com/br.php?page=rollover2">http://bonrouge.com/br.php?page=rollover2</a><!-- m -->
I say this changes the answer to the first question because if you do this, you won't have any 'p' tags giving you trouble with margins. If you follow my example, your ul won't have any top margin either, so you'll be fine (though you might want to give it a bottom-margin...
You might be able to put your text into the tags and make it invisible by putting it in span tags and coding the CSS appropriately - something like this : #navbar span {
visibility:hidden;
}
I hope this helps.Thank you. This is my first serious try at a completely css styled website and all my previous tries resulted in the same error over and over again.
But what I want is that I do not have any <IMG> tags within my html.
I have my menu now like this:
<div id="navbar">
<ul>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"index.php">Home</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"Download s.php">Download s</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"forum/">Forum</a></li>
</ul>
</div>
and now what I want is a rollover effect in them.
I already got the background I got it aligned right but now I somehow need to have that text visibility: hidden and then replaced with a foreground image that is hidden on rollover so you see the background.
I was wondering if this was possible.
if so I can still put in <span><div> tags and classes to get this but I do not want any images in it so I if I make a new design that will have just text buttons I can use a nice css switcher so you can switch site style.<!-- m --><a class="postlink" href="http://www.accessify.com/tools-and-wizards/list-o-matic/list-o-matic.aspthat">http://www.accessify.com/tools-and-wiza ... ic.aspthat</a><!-- m --> is not what I was looking for at all.
what I want is that the text is replaced via css with an images since I use buttons.nevermind.
I have the effect that I wanted using background images over background images and making the text hidden.
ANd again thank you bon for helping me out with that issue.