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 6 of 6
  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    10
    Member #
    7733
    Hi,
    I'd like the following line to change color without breaking. So far no amount of &nsbr; or <nobr></nobr> or <p> or ANYTHING will prevent it from breaking. :lick:

    Any suggestions?

    Here's the HTML:
    <h5>most Fridays(6:30-8:30p)</h5><h6>Pasta Cafe Restaurant, Rio Rancho, Southern Blvd</h6>


    Here's the CSS:
    h5{
    font-family: Arial, Helvetica, sans-serif;
    font-size:16px;
    padding-top:10px;
    font-style: oblique;
    color: #000000;
    }
    h6{

    font-family: Arial, Helvetica, sans-serif;
    font-size:16px;
    padding-top:10px;
    font-style: oblique;
    color: #993300;


    THanks,
    Bob

  2.  

  3. #2
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    Try margin: 0px; and clear: none; on both CSS sets and see if that helps (I'm not sure if I understand your question). If this does work, then you can mess around with the margin's until they are where you want.

  4. #3
    Junior Member
    Join Date
    Sep 2004
    Posts
    10
    Member #
    7733
    Heh heh, I figured it out.


    Black text yada yada <a> now red text without a newline break </a>

    THanks anyway!

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    display: inline

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    although really, you should do it like this:

    <h5>This is some text <span class="red">This is more text</span></h5>

    and just have some CSS like this:

    .red {color: #993300}

    That way, you're using the elements as intended.

  7. #6
    Junior Member
    Join Date
    Sep 2004
    Posts
    10
    Member #
    7733
    Thanks Steve, I'll get in there & do it right. I swear, I won't leave it wrong even though it works. I really won't :-)

    I'm just kiddin around. I really do appreciate the info and will correct it.


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
  •  
All times are GMT -6. The time now is 05:15 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com