Reply
Help to make these wider
Old 10-26-2009, 11:45 PM Help to make these wider
Extreme Talker

Posts: 182
Trades: 0
I'm using this code and css:
Code:
<style type="text/css">
ul.table {
    width:202px;
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
    border: solid #000;
    border-width: 0 1px 1px 0;
}
.table li.lt {
    float:left;
    border: solid #000;
    border-width: 1px 0 0 1px;
}
.table li.rt {
    float:right;
    border: solid #000;
    border-width: 1px 0 0 1px;
}
.table li div {
    width: 100px;
    text-align: center;
    color: #000;
    font-size: 12px;
    padding: .4em 0;
}
</style>
 
</head>
<body>
    <ul class="table">
        <li class="lt"><div>Type</div></li>
        <li class="rt"><div>Number</div></li>
        <li class="lt"><div>TEST</div></li>
        <li class="rt"><div>HELLO</div></li>
        <li class="lt"><div>Type</div></li>
        <li class="rt"><div>Number</div></li>
        <li class="lt"><div>TEST</div></li>
        <li class="rt"><div>HELLO</div></li>
    </ul>
</body>
</html>
How can I make these wider?:
Code:
      <li class="lt"><div>Type</div></li>
        <li class="rt"><div>Number</div></li>
        <li class="lt"><div>TEST</div></li>
        <li class="rt"><div>HELLO</div></li>
        <li class="lt"><div>Type</div></li>
        <li class="rt"><div>Number</div></li>
        <li class="lt"><div>TEST</div></li>
        <li class="rt"><div>HELLO</div></li>
thanks

Last edited by chrisj; 10-27-2009 at 01:31 AM..
chrisj is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-27-2009, 04:38 AM Re: Help to make these wider
chrishirst's Avatar
Super Moderator

Posts: 22,226
Location: Blackpool. UK
Trades: 0
add a width to them.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-27-2009, 10:24 AM Re: Help to make these wider
Extreme Talker

Posts: 182
Trades: 0
Thanks for the reply, I'm trying to make them wider, but when I add anything larger than width: 100px, they get all distorted. So some additional help would be appreciated.

Code:
ul.table {
    width:202px;
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
    border: solid #000;
    border-width: 0 1px 1px 0;
}
.table li.lt {
    float:left;
    width:100px;
    border: solid #000;
    border-width: 1px 0 0 1px;
}
.table li.rt {
    float:right;
     width:100px;
    border: solid #000;
    border-width: 1px 0 0 1px;
}
.table li div {
    width: 100px;
    text-align: center;
    color: #000;
    font-size: 12px;
    padding: .4em 0;
}
chrisj is offline
Reply With Quote
View Public Profile
 
Old 10-27-2009, 03:39 PM Re: Help to make these wider
chrishirst's Avatar
Super Moderator

Posts: 22,226
Location: Blackpool. UK
Trades: 0
explain "distorted"

and in what browser(s)?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-28-2009, 09:50 AM Re: Help to make these wider
airforce1's Avatar
Skilled Talker

Posts: 63
Name: David Lin
Trades: 0
I think 'table' is a reserved word and could be used in a class definition.
__________________
New, retro and custom nike air force ones, jordan shoes,
air jordan force fusion shoes buy online.
airforce1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help to make these wider
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13680 seconds with 13 queries