Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 216
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
 
 
Register now for full access!
Old 10-27-2009, 04:38 AM Re: Help to make these wider
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add a width to them.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
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: 216
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
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
explain "distorted"

and in what browser(s)?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-28-2009, 09:50 AM Re: Help to make these wider
Banned

Posts: 86
Name: David Lin
Trades: 0
I think 'table' is a reserved word and could be used in a class definition.
airforce1 is offline
Reply With Quote
View Public Profile Visit airforce1's homepage!
 
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.18361 seconds with 12 queries