Results 1 to 7 of 7

Thread: CSS problem [Resolved]

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    CSS problem [Resolved]

    Whenever I do something like this:
    Code:
    <a href="./Query/"><p class="norm2">Query Setup (without necessary drivers)</p><p class="other">(use if this is not the first time you have run the setup)</p></a>
    It always seems to put them 2 lines apart. Almost like when you use <p class="whatever"> and then put another one after it, it acts like there are two <br>'s in there. How can I make it not do that? I want them to be right on top of one another but I want to use different classes for them.
    Last edited by ober0330; Jan 29th, 2004 at 01:38 PM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    <p> = paragraph...

    Try <span class="norm2" style="display: inline;">Query Setup</span> etc etc

  3. #3

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    ok... but now for some reason it doesn't keep all of my css properties (font face/size) when i change it to span.

    ??
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  4. #4

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    ok, I'm going to post part of my css file, maybe someone can explain what I'm doing wrong:
    Code:
    p {font-family : Tahoma,Verdana;
    font-size : 10pt}
    r {font-family : Tahoma,Verdana}
    .title2 { font-size: 14pt;
    font-weight : bold;
    text-align: center;
    color: navy}
    .title3 { font-size: 12pt;
    font-weight : bold;
    color: navy;
    text-align: center}
    .norm{ font-size: 10pt;
    font-weight: normal;
    text-align: center;
    color: gray}
    .norm2{ font-size: 10pt;
    font-weight: bold;
    text-align: center;
    color: navy}
    .norm3{ font-size: 10pt;
    font-weight: normal;
    text-align: left}
    .phead1{ font-size: 18pt;
    text-align: left;
    color: black;
    font-weight: bold}
    I tried to learn CSS on my own, but maybe I'm not doing such a great job.

    In all of my files, I've been using
    Code:
    <p class=whatever>some text
    and that is how I display what I want. But if I don't want to use the "p" selector, how do I do it? I've added a "r" selector, but when I use the above with an "r" instead of a "p", it doesn't display correctly.

    Help!?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  5. #5

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    ok... so after doing some of my own research, it appears that selectors can only be HTML tags?! So I guess that's why my stuff isn't working right.

    So now my question is, what element is used to refer to normal text in HTML? What should I use for my selector?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Give the p tag zero top and bottom margins.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    SWEET.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

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



Click Here to Expand Forum to Full Width