I'm having issue with "boarder-header" div. For some reason it doesnt inclose the class elements. Another words if I apply attributes to it, the "titlegreen" and "wts-wtb" are not effected, they sort of flow out of the "boarder-header div.
Am I missing something?
<div id="board-header"> <div class="titleGreen"> <?PHP if ($currentPage != "search") {echo "Wireless Market Listings: $type"; } else { $currentPage = "search"; $searchuserid = $_REQUEST[searchuserid]; $searchco = $db->get_row("SELECT co_name FROM user WHERE id = '$searchuserid'"); echo "Results for: <strong>\"$q\"</strong>"; if ($searchuserid!='') {echo " From: ".$searchco->co_name; } } ?> </div><div class="wts-wtb"> <a href="/trade/?type=wtb">Only WTB</a></div><div class="wts-wtb"><a href="/trade/?type=wts">Only WTS</a></div> </div>
#board-header { margin-top: 10px; border-bottom-width: thin; border-bottom-style: dotted; border-bottom-color: #CCCCCC; height: 50px; display: block; } .titleGreen { font-size:25px; font-stretch:ultra-condensed; color:#33cc33; margin-left: 15px; padding-bottom: 5px; width: 500px; display: inline-block; float: left; margin-bottom: 20px; padding-top: 10px; } .wts-wtb { padding-right: 20px; display: inline; float: right; }
You've probably had this
You've probably had this said to you before but: the best way to get feedback is to provide a link to a live page. The next best is to provide the full HTML (after server side processing) and the full CSS.
Regards
You haven't enclosed your
You haven't enclosed your floats.
bgbs please don't post
bgbs please don't post server side code; with 49 posts to your name I shouldn't have to be saying this.
if ($currentPage != "search")
{echo "Wireless Market Listings: $type"; }
If it were important to understand your Styles as they related to Markup, how on earth would I know what the above snippet of code was actually going to echo?
I will post the links. I'm
I will post the links. I'm remaking an old site built by another developer and converting all tables to css right now. It is a difficult procedure.
Original http://wassociation.com/trade/
CSS http://wassociation.com/trade/index.css.php
I'm also trying to figure out how to make the hover function just like in the table listings. If you move your mouse over a listing it changes background color to #EEE. When I try to do the same effect with my own css it makes the text EEE color and individual cells.
I'm not sure what I need to do to fix this
Thanks
#listings { margin-top: 10px; border-bottom-width: thin; border-bottom-style: dotted; border-bottom-color: #CCCCCC; overflow: hidden; display: block; width: auto; } #listings :hover { background-color: #EEEEEE; }
You've heard this before
You've heard this before too: validate your code. The results for the link you gave are:
1487 Errors, 19 warning(
You might want to address those errors before doing anything else.
Regards
I'm addressing those as I
I'm addressing those as I go.
I had 2000, down to 1277
down to 6 errors, can I get
down to 6 errors, can I get some help now?
Are we looking at the same
Are we looking at the same thing? When I check your page the number of errors shows as having increased to 1568. See this link:
[url]http://validator.w3.org/check?uri=http%3A%2F%2Fwassociation.com%2Ftrade%2F&charset=(detect+automatically)&doctype=Inline&group=0[/url]
Regards
Uou are looking at the old
Uou are looking at the old page with tables
I'm working on http://wassociation.com/trade/index.css.php which I will eventually replace
Does anyone care about this
Does anyone care about this topic anymore?
It's only been a couple
It's only been a couple hours...
You appear to have heeded
You appear to have heeded Tyssen's observation and enclosed your floats. That leaves the hover issue you then added part way down the thread. Try removing the space in front of the hover pseudo class so that the line reads:
.listings:hover {
Picking up on Deuce's comment, you should remember that anyone offering you feedback is doing so entirely voluntarily and a pushy attitude is not likely to win you any friends. Given that it's also the weekend you are lucky to get any feedback at all tonight.
And validation still throws up errors and warnings: 116 errors and 18 warnings. Over to you.
Thanks man, how am I
Thanks man, how am I supposed to know that a simple thing as removing a space fixes everything? What does space do anyways? Maybe you can recommend a good place or book for me to learn more about CSS.
I'll donate some cash for you guys, this forum deserves it.
bgbs wrote:I'll donate some
I'll donate some cash for you guys, this forum deserves it.
There's a donate button in the left column for the One Laptop per child program.