SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 26

Thread: css problems

  1. #1
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi there, could you please check out www.mostlyamphigory.com

    I use a stylesheet called /navbar/style.css
    Here it is:
    ______________________
    A {
    font-color: #000070;
    text-decoration: underline;
    }
    A:hover
    font-color: #0000FF;
    text-decoration: underline;
    }
    .toplinks {
    font-color: #ffffff;
    text-decoration: none;
    }
    .toplinks:hover {
    font-color: #ffffff;
    text-decoration: underline;
    }
    BODY {
    background-color: #ffffff;
    }
    .maintable {
    background-color: #FFF0C0;
    }
    .secondtable {
    background-color: #E5D49B;
    }
    ____________________


    The .maintable and .secondtable are working in both IE and netscape but the link colors and text-decoration aren't

    In IE the A doesn't work
    In netscape the A and the A.toplinks don't work

    How do I fix it?

    If you get there and it is working, then it has already been fixed.

  2. #2
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well..Is it fixeD? LOL

    Anyway, a solution would be to properly specify your styles.
    Set a default:

    a {}
    a:link {}
    a:visited {}
    a:hover {}
    a:active {}

    for setting other type of A links,

    make you set all 4, or 3 ( excluding a:hover ).
    eg.
    a.toplinks:link {}
    a.toplinks:visited {}
    a.toplinks:hover {}
    a.toplink:active {}

    thray set a.toplinks {} if you have any defualt styles for all <a href="" class="toplink"></a> elements.

    If you don't understand, make a post and i'll explain it more detailed. haha..I still don't know if you already fixed it. *grin*
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  3. #3
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    okay no it isn't quite fixed yet

    Thanks for the quick reply

    The
    A {
    font-color

    etc - doesn't seem to work on the front page.

    It should make the links on the page dark blue whether visited or not.

    the toplinks has been fixed, but in netscape the hover doesn't work (it's like that on all sites with NS so don't worry).

  4. #4
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    PS this is the first day my site has been up, I'm still going so please excuse the broken links (about us).

  5. #5
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Geez..should have noticed your code!
    Its color : #FFFFFF;

    NOT font-color!!
    LOL

    Should work now =)
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  6. #6
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ok thanks!

    I should have looked at one of my other pages to check!!

    I will fix it now...

    [edit]
    FIXED! Thanks lynlimz!

    I should be more careful.

    By the way I'm using stylesheets so for things like the table colours, so I can keep the colour scheme the same all over the site. If the viewer doesn't have stylesheets at the moment, some of the tables will be light blue. Doesn't matter too much. 4% of my visitors may get the old colour scheme that's all

    Using SSI for the header too. Cool ey? My first ssi, and my first external stylesheet link.
    Last edited by mmj; Mar 16, 2001 at 06:43.

  7. #7
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL mmj, you'll get to better stuffs very soon =)
    Try PHP for better experience! haah
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  8. #8
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    yes...

    I've used ASP a bit. Now on a new server, and I will teach myself PHP in the future. There's a good beginner's guide on the sitepoint homepage that I will refer to.

    Then I'll be able to access the articles by php, it'll be good.

  9. #9
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    =)
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  10. #10
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wtg lyon...I noticed the font-color part too and was going to bust out an answer, but you beat me to it...good job!
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  11. #11
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Geez....Way to go Creole too..

    Still haven't beat your post count *grin* juz joking
    hey...am i really 'chatting' with a dog? lol
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  12. #12
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that is my dog "Nacho"...he can be found "lurking" at www.nachodog.com
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  13. #13
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow! lucky you..having a dog. my parents forbid pets in house.


    hmm...glad to knwo you ain't a dog..lol
    eklse you'll be a darn intelligent/capable one.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  14. #14
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well seeing as how it is MY house, I think I can have a dog if I want eh?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  15. #15
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    haha...hey..how come your posts run so high so fast...haha
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  16. #16
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i just been posting a lot...you have too...
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  17. #17
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL Creole...Juz slowly picking up my pace.
    I've initiated the gradual process of posting in other forums too..haha
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  18. #18
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I've been watching this thread from interest.

    It's funny that the topic seemed to change from css to talking dogs to post counts...

    Keep up the good work, and thanks again lynlimz for the answer.

  19. #19
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL..I apologise for the shift in topic..lol

    hheehz..Creole..it seems we both hav been overtaking other people's posts soon after their problem has been resolved? haha
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  20. #20
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been laughing at that too. THe way I look at it, if we answer the question, then we should get to make a post that is off-topic right?

    <grin>
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  21. #21
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    haah...yeah right!
    we take over the posts...muahahaha! lo.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  22. #22
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    yes.

    no problems...

    By the way I've just taught myself PHP (it is very easy - especially for a c/c++/java veteran) and I've created a totally database driven site.

    http://www.mostlyamphigory.com/

    The only non-database bits under this domain are the news and about page (the news page soon to be replaced by a script for fetching news from the database).

    Still struggling with the css in netscape though, but I'll do a bit of research on that. I think the problem is that the way I'm doing it is WRONG and that IE is too forgiving.

  23. #23
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool mmj,
    i know php cause i know perl.
    regarding the css problems...
    netscpae doesn't support some attirbutes, or is buggy at some of them.

    tkae a look at this page if you haven't.
    http://css.nu/pointers/bugs.html
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  24. #24
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Uh huh.

    Well I had a look at a variety of web sites and instead of using the style property border-width, etc - they use a nested table inside another table, where the table has a cellspacing of 1 pixel to create an outline.

    I've done that now. On my page there is now a border around the boxes on the left in both NS 4.x and IE 4-5.x.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  25. #25
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's because Netscape does not fully support the border attribute.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •