Results 1 to 4 of 4

Thread: style doesn't apply to the corresponding element?

  1. #1
    Join Date
    Jun 2008
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default style doesn't apply to the corresponding element?

    hi
    i have a div which contains some form elements and i have attached a style to it, the problem is that the style doesn't work for the element assigned to it

    HTML Code:
    <form action="../'.$_GET['lang'].'/index.php?lang='.$_GET['lang'].'&type=career" method="post" ENCTYPE="multipart/form-data">
    <div class="cv">
    <ul>
    <li>Name:</li>
    <li><input type="text" name="guest" size="25"></li>
    </ul>
    <ul>
    <li>Your Email:</li>
    <li><input type="text" name="guest" size="25"></li>
    </ul>
    <ul>
    <li>Additional Notes :</li>
    <li><textarea cols="30" rows="4" name="comment"></textarea></li>
    </ul>
    <ul>
    <li>CV location:</li> 
    <li><input type="file" name="file" size="30"></li><li> <input type="submit" value="send" name="submit"></li>
    </ul>
    </div>
    </form>

    css class

    Code:
    div.cv ul li
    {
    display:inline;
    list-style:none;
    }
    any suggestions or help please

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't see how it doesn't apply. There <li>s are sitting next to eachother, and then they make a line break... Whats wrong?
    Jeremy | jfein.net

  3. #3
    Join Date
    Jun 2008
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    that's what i'm talking about , it's too strange

    the result data will be as if it was with no style: like this

    * Name
    *|textbox|

    *your email
    *|textbox|
    ...
    ...
    ..
    i didn't know what is the wrong with this code.!

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by GoogleQuality View Post
    that's what i'm talking about , it's too strange

    the result data will be as if it was with no style: like this

    * Name
    *|textbox|

    *your email
    *|textbox|
    ...
    ...
    ..
    i didn't know what is the wrong with this code.!
    What other styles do you have on the page applied to anything related with the form? It sounds like something is overriding it because there is nothing wrong with the CSS you posted. It even works in IE6 .

Bookmarks

Posting Permissions

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