52 users online (1 members and 51 guests)  


  Results 1 to 3 of 3

Related

  1. Replies: 0
  2. Code Help.    Forum: Myspace Forum
    Replies: 0
  3. I need help with this code.    Forum: HTML Forum
    Replies: 1
  4. Ignore code and link greeting note code    Forum: HTML Forum
    Replies: 3
  5. need code.    Forum: HTML Forum
    Replies: 1
  1. #1
    Stilicho's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2004
    Posts
    2

    Question Need some help with CSS code

    Hi all

    This is my first post.
    First of all I am not a webmaster at all, but I have a quite important Blog that I must take care of my own. Its quite big, it has 30 "categories" (or the Blogger way around the lack of it) but is not ready to show yet. Lots of work to do.

    So I set up a second account with the same template and a few categories with just one post that I use to tweak and see the results first, out of fear of messing around the main one that is already very big and I don't want to loose all the work done so far.

    I have a few questions related to my lack of knowledge of the CSS code (and all the others in general).

    If the other members would mind I would appreciate some help to keep going...

    The "problem"

    Blogger has on "Settings" a single line where to put the "name" or "title" of the Blog.
    In the account that I use for "Home Page" everything is fine.
    In the accounts I use as "categories" I must have TWO lines:
    One with the name of the Blog that is the same in all "categories"
    A second one with the "Categorie's" name.

    Since I only have one line to write, the text wraps at the end of the line to the second line but not in the place I want to.
    Part of the "categorie's" name stays in the upper line and another part in the second.

    I want the text to "wrap" or "break" at an exact point to separate the two parts of the text and force the categorie's" name to appear in the second line.

    First question:

    - Does CSS has a code to force the wrap up of the text at a designated point ?

    - If not what can I do to have the same effect, any idea ?

    Sorry for the trouble
    S

  2. #2
    dlongnecker's Avatar
    Tired Student...(Z_z)

    Status
    Offline
    Join Date
    Aug 2004
    Location
    Wichita, KS
    Posts
    86
    Umm... maybe I'm not reading it right, but if you have:

    HTML Code:
    <div class='mytext'>Some more junk text goes here</div>
    and you want to break it at a set position that you

    1. know where that break is and will always be,
    2. want that break the same for everyone,

    then why not:

    HTML Code:
    <div class='mytext'>Some more <br/>junk text goes here</div>
    and just insert a break?

    Looking at a CSS solution, if you know the exact width, you "might" be able to create a DIV of that exact size where it'd move the text around... but the more I think of that... I'm not sure I can think of a nice clean way to do it. I personally don't know of a way to force CSS to break at a specific point due to the elements inside the DIV.

    But, I regress... if you know the point, wouldn't a break solve the problem?

    Thanks!

    -David

  3. #3
    Stilicho's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2004
    Posts
    2
    Thanks a million

    It worked I have already everything as I need.

    Can I ask you something else ?

    My left sidebar needs to be separated from the main text by about 5 mm.

    From another forum I got this answer:

    Typical example would be this :-

    /* Sidebar Content
    ----------------------------------------------- */
    #sidebar ul {
    margin:0;
    padding-top:.5em;
    padding-bottom:.9em;
    padding-right:.2em;
    border-bottom:1px dotted #330066;
    font-weight:bold;
    list-style:none;
    }
    #sidebar li {
    margin:0;
    padding:0 0 .25em ;
    font-weight:bold;
    text-indent:-15px;
    line-height:1.2em;
    }
    #sidebar p {
    color:#330066;
    font-weight:bold;
    line-height:1.2em;
    }

    You'd need to alter the padding or margin til you get what you desire.
    The problem is that after two requests he didn't told me how to do the thing.

    Could you tell me how that can be done or add something to clarify what he said ?

    My template is the Scribe from Blogger
    Last edited by Stilicho; 10-06-2004 at 06:43 PM.



Tags for this Thread