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 2 of 2
  1. #1
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    I could have sworn I had this problem solved but apparently not...

    I wanted to stop text on the top line of my page from wrapping when my favorites folder is opened (I have IE 6.0 and the favorites folder opens on the left-- pushing the page content to the right). I used the following to control the wrapping :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    <HEAD>
    <TITLE>My First Stylesheet</TITLE>
    <STYLE TYPE="text/css">
    <!--
    table a:link, a:visited, a:active {text-decoration: none;}
    a:link {color:black;}
    a:visited {color:black; text-decoration: none}
    a:hover {color:black; background:white; text-decoration: none}
    a:active {color:black; background:maroon; text-decoration: none}
    H1 { white-space : nowrap; color: black; font-size: 50px; font-family: impact; line-height: 45px; display:inline }

    H2 { white-space : nowrap; position: justify; color: black; font-size:

    #t { white-space : nowrap; color: white; font-size: 15px; font-weight: bold }

    </STYLE></HEAD>
    <BODY BGCOLOR="#999900"><br><IMG SRC="C:\My Documents\My Pictures\giftbox.jpg" WIDTH=70 HEIGHT=52 BORDER=0>
    <div>
    <H1><a href="link.html">NAMETEX.COM</a></H1><span id="t">&nbsp;<t>Here: this is the text that is doing the unwanted wrapping!<t></span></div>

    It didn't wrap before I added the image-- because the text never exceeded the margin when the favorites folder was opened and therefore had no reason to wrap. I'd like to get it to not wrap even with the inclusion of the image and have tried several code variations with no success. I've prevented text from wrapping before so I don't understand what the problem is here.

  2.  

  3. #2
    Senior Member duck444's Avatar
    Join Date
    Feb 2003
    Location
    east coast
    Posts
    402
    Member #
    751
    Liked
    2 times
    What a dope I am. Sorry for wasting bandwidth but I just figured it out. I put everything inside the <H1> tag and that controls the wrapping. Like so:

    <H1><a href="link.html">NAMETEX.COM</a><span id="t"> <t>Here: this is the text that is doing the unwanted wrapping!<t></span></H1>


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 03:01 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com