Topic: Another stupid Link-CSS question |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-06-2005 07:59
I previously learned here about the LVHA order. I had some layout problems and ended up making it all over..and it works great. |
Maniac (V) Mad Scientist From: :morF |
posted 02-06-2005 08:13
So the link CSS styles are arranged in the heirarchy order? |
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-06-2005 08:47
Yeah sorry, just really frustrated. I even chagned it back to see if it'd work the other way and it wouldnt even work then. Not sure what happened. code: .storytitle
code: #wpcontent
|
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-06-2005 17:22
Just as an update, I validated my CSS and found several errors, fixed them..but it didn not solve the problem. The HTML and CSS is now valid..and I just can't figure out what's going on :\ |
Maniac (V) Inmate From: under the bed |
posted 02-06-2005 17:48
As far as the id vs. class - an id is for something that is unique, and can only be used once on each page. |
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-06-2005 17:59
Well originally I didnt have that storytitle class on the link as well.. I did that to try to make it work. |
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-06-2005 18:02
Taking out the div class and just using the a:link.storytitle and class="storytitle in the link makes my lining up improper ..hehe. |
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-06-2005 18:08
Hree is what I really don't understand. |
Maniac (V) Inmate From: under the bed |
posted 02-06-2005 23:40
quote:
|
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-06-2005 23:54
Well the nesting is nessessary for the 100% height crap...took me forever just to get it to work. I had to scrap my first method and redo it completely...and I don't want to scrap it again.. |
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-07-2005 00:06
I tried to use an inline style on the actual link, that worked. :\ I must have something conflicting somewhere thats not letting it read from CSS file... |
Maniac (V) Inmate From: under the bed |
posted 02-07-2005 04:47
quote:
quote:
|
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-07-2005 10:10
100% Height of viewport is simple..but 100% height with divs inside causing 100% to pass viewport, plus a footer, is not "Easy" for someone who just started CSS. |
Maniac (V) Mad Scientist From: :morF |
posted 02-07-2005 11:26
CSS runs by an order of inheritance, starting from the HTML, down to the BODY and from there down through the heirarchy order of your page contents. If you're going to design your page on this basis your CSS must reflect it. Look at it like two cars, one a base modal and one a customised hotrod. The base model is your base tags, a, p, del, pre, code and so on. The customised hotrod is any classed or id'd versions of these. You have everything in your hotrod that you have in your base modal, plus some extras. That's the way it works, so say you want all links on your site, regardless of where they are, to have a full border, 1pixel wide, that is black, then in your base modal you'll define: code: a {
code: a.menu-link {
|
Maniac (V) Inmate From: under the bed |
posted 02-07-2005 13:42
quote:
quote:
quote:
|
Paranoid (IV) Inmate From: Mesquite, TX 75149 |
posted 02-07-2005 16:12
Well about cascading you mentioned it pulling the valudes from the last in the CSS file. |