help please

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • adrian suri

    help please

    Hi

    tried code but since I am using lots of these to highlight etc key words
    it mucks up, anyway
    I got it working using
    pre.samplecode
    {
    border-style: solid solid solid solid;
    border-width: thin thin thin thin;
    float: left;
    visibility: visible;
    height: auto;
    background-color: white;
    font-family: monospace;
    position: relative;
    padding-left: 2pt;
    width: 50em;
    Font-style: normal;
    Border-color: black;

    }
    the problem now is I wanted the text to wrap around this this, which it does
    but I can't gt padding to give some space between, I uploaded the file
    if anyone cares to look




    adrian

    Alan J. Flavell wrote:
    [color=blue]
    > On Wed, 17 Aug 2005, Michael Stemper wrote:
    >
    >[color=green]
    >> I'd think that sample code would be better placed in a <CODE> element
    >> than in a <PRE> element.[/color]
    >
    >
    >
    > Maybe I'll provoke some hefty counterblast for this, but if it's the[/color]
    kind of code that's conventionally presented in a fixed format, I
    wouln't be shy to mark it up with <pre> *and* <code>.[color=blue]
    >[/color]
  • 'sNiek

    #2
    Re: help please

    adrian suri schreef:[color=blue]
    > Hi
    >
    > tried code but since I am using lots of these to highlight etc key words
    > it mucks up, anyway
    > I got it working using
    > pre.samplecode
    > {
    > border-style: solid solid solid solid;
    > border-width: thin thin thin thin;
    > float: left;
    > visibility: visible;
    > height: auto;
    > background-color: white;
    > font-family: monospace;
    > position: relative;
    > padding-left: 2pt;
    > width: 50em;
    > Font-style: normal;
    > Border-color: black;
    >
    > }
    > the problem now is I wanted the text to wrap around this this, which it
    > does
    > but I can't gt padding to give some space between, I uploaded the file
    > if anyone cares to look
    > http://home.swipnet.se/virtpub/lang/cpp/lessons/[/color]

    You only specified the padding on the left side, do something like this:
    padding: 5px 10px 10px 2px to specify the padding on the top, right,
    bottom and left.

    BTW: code like:[color=blue]
    > border-style: solid solid solid solid;
    > border-width: thin thin thin thin;[/color]
    Can be shortened to:
    border-style: solid;
    border-width: thin;

    Or eben better:
    border: thin solid black;

    Cheers.

    --
    Niek

    Comment

    • adrian suri

      #3
      Re: help please

      Thanks for the reply, I have pinned down the problem to the

      pre.samplecode, which I used float:left

      I decided to place a line around all p tabs and noticed I could not see it
      when it floated around pre.samplecode

      adrian
      'sNiek wrote:[color=blue]
      > adrian suri schreef:
      >[color=green]
      >> Hi
      >>
      >> tried code but since I am using lots of these to highlight etc key
      >> words it mucks up, anyway
      >> I got it working using
      >> pre.samplecode
      >> {
      >> border-style: solid solid solid solid;
      >> border-width: thin thin thin thin;
      >> float: left;
      >> visibility: visible;
      >> height: auto;
      >> background-color: white;
      >> font-family: monospace;
      >> position: relative;
      >> padding-left: 2pt;
      >> width: 50em;
      >> Font-style: normal;
      >> Border-color: black;
      >>
      >> }
      >> the problem now is I wanted the text to wrap around this this, which
      >> it does
      >> but I can't gt padding to give some space between, I uploaded the file
      >> if anyone cares to look
      >> http://home.swipnet.se/virtpub/lang/cpp/lessons/[/color]
      >
      >
      > You only specified the padding on the left side, do something like this:
      > padding: 5px 10px 10px 2px to specify the padding on the top, right,
      > bottom and left.
      >
      > BTW: code like:[color=green]
      > > border-style: solid solid solid solid;
      > > border-width: thin thin thin thin;[/color]
      > Can be shortened to:
      > border-style: solid;
      > border-width: thin;
      >
      > Or eben better:
      > border: thin solid black;
      >
      > Cheers.
      >[/color]

      Comment

      Working...