Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Apr 2018
    Location
    Mars
    Posts
    1
    Member #
    58787

    Post Problem with HTML and CSS

    Hello, guys! I have been having a problem for some time and i would ask for your help.

    I have been practicing to make real website with navigational menu, articles and so on, but i found some problems. First of all, when i made my Navigational menu perfectly, i started to make some random unordered list with links, but when i save it and check it i see that it has the same style as the navigational links on the Navigational menu and since i cant class <a href> (right?). I have this problem not only with links. Do i need to open a new HTML stylesheet? And how do professional programmers program?

    Thank you!

  2.  

  3. #2
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    you can class that like so

    HTML
    <a class="test" href="#">Test</a>


    CSS
    .test{
    color: red;
    }
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs



  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,686
    Member #
    5580
    Liked
    716 times
    There are many link effects, hover, color, selected, etc.

    You are really "classing" the 'a', not the 'href'.

    Here is a place to see how different effects work (more advanced CSS):
    https://codepen.io/P233/pen/EaGAl

    Some more basic examples:
    https://www.w3schools.com/css/css_link.asp


    Last edited by mlseim; Apr 09th, 2018 at 08:57 PM.



Remove Ads

Posting Permissions

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

Tags for this Thread

All times are GMT -6. The time now is 03:19 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com