width

ttk.Separator set the length/width

≡放荡痞女 提交于 2019-12-04 04:19:05
问题 How to set/change the length/width of a ttk.Separator object in Tkinter? ttk.Separator(self, orient='horizontal').grid(column=0, row=0, columnspan=2, sticky='ew') It seems that columnspan tries to do the job, but when you have multiple separators with the same columnspan, they appear to have different lengths - any idea why? Here is a simple quick ad-hoc "dirty" test example: import ttk from Tkinter import * class myTestFrame(Frame): def __init__(self): Frame.__init__(self) self.master.title(

Background image width not 100% on iPad

六月ゝ 毕业季﹏ 提交于 2019-12-04 03:42:37
问题 My background images have not been spanning the full width of the browser when viewed on an iPad. This has happened more than once now, so it must be in the way I'm writing the CSS. Here is an example of a footer whose bg image is stopping about 70% of the way on iPad- it has three columns floating within. I've put the full project up here: https://github.com/christineh/TJ-portfolio HTML: <footer> <div class="footer_invs"> <div class="footer"> <h1></h1> <p></p> </div> <div class="footer"> <h1

How to increase an width:auto DIV's width by X pixels using pure CSS

十年热恋 提交于 2019-12-04 03:42:19
问题 I have a DIV (that is set to float:left ) that has its width set to auto because i want it to be just as wide as its contents. On hover , i would like to increase width of the DIV by say, 20 pixels. When setting a fixed width in the :hover CSS class, the container will get that width on hover, but CSS3-Transitions won't apply/work (tested in Firefox 15.0.1) If my DIV 's contents are larger than that fixed width , the final width will not be correct. How - without the usage of javascript - can

How do I force nested list items to be the same width as parent list item?

删除回忆录丶 提交于 2019-12-04 03:17:45
I have a horizontal parent list. Some of the list items display a nested vertical list when clicked. How do I force the items in the vertical sub list to be the same width as the parent list item? See jsFiddle . HTML: <ul class="mainMenu horizontalMenu bulletless fullWidth bold"> <li class="showSubMenu"> <div>Resumes & Cover Letters ▾ </div> <ul class="mainSubMenu bulletless"> <li><a>Resumes</a></li> <li><a>Cover Letters</a></li> <li><a>Interviews</a></li> </ul> </li><li><a>Other Link</a> </li><li><a>Other Link</a></li> </ul>​ CSS: .horizontalMenu li{ display: inline-block; } .mainMenu > li{

override bootstrap container width

不想你离开。 提交于 2019-12-04 03:01:00
I have an easy HTML template using bootstrap 3. Template has following structure: static header, static footer and content which is in the bootstrap's class "Container". In the middle of content I have bootstrap'w "Well" and i want it make looks like header and footer. I mean I want it to be the full width of the screen on any screen. I created easy fiddle. Here's a question, is there any way to override container's width inside this container? <header> <div class="container"> <div class="content"> </div> <div class="well"> </div> <div class="content"> </div> </div> <footer> iamnotsam ORIGINAL

Table overflows parent div when td content is too wide

空扰寡人 提交于 2019-12-04 02:57:57
I prepared a JSFiddle to explain/show you my problem: http://jsfiddle.net/nz96C/ It looks alright at first, but when I add some text to #firsttd the whole table overflows the parent div once the tds whole width is used. I know how to solve this problem with CSS ( #firstdiv {width:90px;overflow:hidden;} ) but I don't know the exact number of pixels (percentage doesn't work). Also I don't want the text in the first td to wrap. I hope you get my problem, I even have trouble explaining it in my first language. EDIT: My goal is to have a table in which it doesn't matter how long the text in the

Table width 100% is off by a single pixel (depending on actual width)

三世轮回 提交于 2019-12-04 02:52:37
I have a table in a div inside another div . The direct container has a width of 40% , and I want the table to be as wide as this div, by setting width: 100% . Relevant Markup This works most of the time, however depending on the width of the browser window, the width of the table is sometimes off by a single pixel: As you can see to the right, the border is a pixel to the left of that of the sibling div .info . These borders should align. Relevant CSS #userListContainer{width: 40%; float: left; } .info{display:block;line-height:22px; height:22px; padding-left:10px; } #userListContainer .info

HTML table column widths: combining fixed and variable widths

喜欢而已 提交于 2019-12-04 02:46:16
I've made a table as such: <table style="width:1000px;"> <tr> <td>aaa</td> <td id="space"></td> <td class="fixed-width">bbb</td> <td class="fixed-width">ccc</td> </tr> </table> How would I do the CSS so that the b and c columns have a fixed width, the a column only takes as much space as needed, and the space column to expand to fill the rest of the table? I'm no CSS guru, but it just didn't seem right that there'd be no way to do this. This appears to work in Firefox and IE7. I have not checked other browsers. The first shrink-to-fit <col> is set (using CSS) to 0 width, so it shrinks to fit

Liquid textfield width

走远了吗. 提交于 2019-12-04 02:37:05
问题 I have this fairly simple form: <form action="..."> <div> <input type="text" class="input-text" value="" name="text" /> <input type="submit" class="submit" value="Submit" /> </div> </form> The form is sitting inside a fixed-width div (specified in ems). I want the textfield and button to be a single row, but the textfield width is inconsistent across browsers even when I specify its size attribute. Not wanting to specify exact widths (especially for the button) I was wondering if it was

How to change the width of UITabBarItem?

一世执手 提交于 2019-12-04 00:59:55
问题 How to change the width of UITabBarItem? I have an item with the title, that is wider than default item width. How can I fix it? 回答1: I just searched through the documentation and saw no method for adjusting the UITabBarItem's width. A possible solution would be to place a view within the tab bar controller to load a custom UITabBarItem, that is the proper width. 回答2: Solution for iOS7 and greater versions: A new property has been introduced for UITabBar: itemWidth . Set the itemWidth to a