both vertically and horizontally, so that the text is exactly in the middle
html,css,alignment,positioning
I am trying to create nine circles, with a picture of a person in each, with the name of the indidvidual directly in the middle of each picture. Below is my HTML and CSS file. I have tried using text-align: centre however it does not look accurate? Also, it only...
android,textview,alignment,android-linearlayout
Right now my listview is to the right of my last button, but I want it to be underneath all three of my buttons (which are all on the same row). How can I get my listview underneath my buttons? Here is my code <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center_horizontal|bottom"...
delphi,alignment,delphi-2009
This one I really don't know how to solve it... How to reproduce the problem: Run the code and and and shrink the window until the height of DriveBar is increased and then maximize the window. Then you can notice that Panel1 is no more top aligned, and between these...
java,swing,alignment,layout-manager,flowlayout
I have a JPanel using a FlowLayout layout manager and contains components with different sizes. EDIT: I want to use the FlowLayout because it allows the components to wrap to a new line when the container is resized and they no longer fit next to each other. The following image...
html,css3,alignment,css-transforms
For some reason my vertical alignment code is blurring some but not all child elements in Chrome and Safari. Whats causing it is the translateY(-50%), if I remove this then blurriness is gone however the vertical centring effect is lost. /* @group Center all the things */ .center-wrapper { position:...
html,css,alignment,vertical-alignment
I'm trying to create a block with an image that contains content by your side, where I intend to align the image vertically based on the content's height. I've tried alignments with table/table-cell technique but I can't get what I want.. click here to see what I want: ...
html,css,alignment,materialize
I have a button and some text next to it. I'd like to match the text's vertical alignment with the button's. Here's what I have now: Basically, I'd like the or Sign Up text to go a bit higher. I'm using MaterializeCSS as well. Here's the code I have for...
xml,gtk,alignment,pygtk
I am new to gtk programming (but experienced with python). I have a window that has a button widget child. What do I have to do if I want the button to completely fill the window? By the way, this would be extremely easy to do with xml (fill-parent), is...
html,css,alignment
I'm trying to do a list with icons. I want to align my text. Here is a jsfiddle to show my question: <ul> <li><i class="fa fa-phone"></i>lorem ipsum test<br>TEST<br></li> <li><i class="fa fa-phone"></i>00 00 00 00 00</li> </ul> TEST is under the icon but I want to put it under the text....
html,css,position,alignment,parallax
I am using a simple parallax scrolling effect however I am running into two problems. I cannot have the #background stay centered while zooming in and out. If i change the position to relative it will, but it needs to remain fixed to create the parallax effect. the #nav container...
android,button,alignment
I want align the text in my button on the left, but not at all. for clarifying, look at the red circle in the image. Thanks. (the first in the image is my result, the secondo what i'll want) xml code : <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/activity_libretto" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:orientation="vertical" >...
html,css,alignment
I am currently building an app making use of cards. I would like the cards to be centered horizontally within the container, however the last row should be aligned left. Websites such as Yummly (http://www.yummly.com/) achieve this when you resize the page. This is what I have so far, except...
html,css,html5,alignment,inline
Here is an example: http://jsfiddle.net/nojv18wf/ <div> <div class="display">Blah blah blah?</div> <div class="input" contenteditable="true"></div> </div> <br /><br /><br /><br /> <div> <div class="display">Blah blah blah?</div> <div class="input border" contenteditable="true"></div> </div> Watch where the caret goes when you click on "blah blah blah." In the first example, it jumps to before the...
html,css3,alignment
i spend a day searching for a way to align my child DIV from its parent but all my research show same results. This is my first time creating a webpage. !http://i.imgur.com/xpUsMzU.png <== result https://jsfiddle.net/backspaced/6uy56hw4/ <== Code ._header0 { position: relative ; white-space: nowrap ; overflow: hidden ; text-align: center...
wpf,mvvm,alignment,itemscontrol
I have a WPF MVVM application with an itemscontrol. The number of horizontal child items is influenced by the itemscontrol width. There is only 1 thing i haven't solved. I'm trying to align the child elements in a way that there are always centered. I have made quick pictures in...
wpf,xaml,button,alignment,textblock
I have two buttons on a grid. On the right button there should be some text shown left aligned and another text right aligned. In all my tries so far the two strings are positioned in the center of the button and not left and right. Once this is solved...
html,css,alignment
<div class="chat-space"> <ol id="chat" class="discussion"> <!-- Chat messages get added here --> </ol> <div id="chat-box"> <input id="message"></input> <button onclick="sendMessage()">Send</button> </div> </div> How can I have the chat-box div to the bottom of the chat-space div at all times and centred as well, the chat-space div becomes scrollable as chat messages...
html,alignment,center
I have this code and i cannot vertical align content in second div to center. <div style="min-height: 317px"> <!-- this min div is auto generated--> <div class="verticalalign"> <h1>Heading</h1> <p>Some text</p> </div> </div> How CSS for class .verticalalign i must write to vertical align center for second div ? Parental div...
html,css,alignment
I'm trying to center the inner divs by setting the margins on the outer div, but it does not appear to be working. So my HTML looks like this: <div id="outer"> <div class="inner"><span>H</span></div> <div class="inner"><span>I</span></div> </div> My CSS looks something like this: #outer { display: block; width: 100%; margin: 0...
c++,windows,gcc,alignment,sse
I'm trying to work with AVX instructions and windows 64bit. I'm comfortable with g++ compiler so I've been using that, however, there is a big bug described reported here and very rough solutions were presented here. Basically, m256 variable can't be aligned on the stack to work properly with avx...
memory,alignment,malloc
I am writing a code to examine how memory is managed between stack and heap. for a course work. #include<stdio.h> #include<stdlib.h> #define NUM_OF_CHARS 100 // function prototype void f(void); int main() { f(); return 0; } void f(void) { char *ptr1; ptr1 = (char *) malloc(NUM_OF_CHARS * sizeof(int)); printf("Address array...
html,css,position,alignment
My code in my HTML file is as follows: #firstblock h1 { font-family:'Open Sans'; font-size: 12vh; text-align: center; } #firstblock { position: relative; height: 200px; line-height: 200px; } <div id="firstblock"> <div id="title"> <h1>TITLE</h1> </div> </div> I see no reason why the vertical align is not working. I would appreciate any...
java,html,swing,alignment,jlabel
I need to to have text formatted in HTML. The text was therefore enclosed in HTML tags with proper color and alignment applied. The color settings works, but not the alignment set by 'text-align: center;'. Looking to center align HTML text in the 'botlabel'. Cleaning and rebuilding the project did...
html,css,alignment
I have 2 divs inside a container like this: <div id="container"> <div id="first">Hello World</div> <div id="second">I want to be at the top</div> </div> I want to align the first div below the second div without changing the HTML. How is this possible? Here is my CSS: #container { float:left; width:100%;...
html,css,alignment
I want to know if it is possible to center a website header which has not been placed into divisions, but has been placed in the header tag. It's code goes something like this: <header> <div class="top"> </div> <div class="image"> </div> </header> The CSS goes something like this: header {...
java,checkbox,javafx,alignment,treetableview
thank you for reading my question. I'm working with a TreeTableView, and managed to display a Boolean value into one of the columns, by following the results proposed on this answer. It works perfectly, but when applied, the checkbox has a TOP_LEFT alignment, instead of the CENTER one (the CENTER...
html,css,alignment,center
<div id="banner" class="cf"> <div class="banner container"> <hr/> <p class="banner-text"> Some text here <span class="sub-bt">That's it.</span> </p> <a href="#" rel="nofollow" class="learn-btn">Learn More</a> <img src="<?php echo get_template_directory_uri(); ?>/library/images/responsive_ex.png" class="res-ex"> </div> </div> This is the code for the issue as far. I need to position the image with a class of "res-ex" to...
html,css,alignment
Stuck on a problem where when I enter text in a div with display property set to inline-block. Here's the HTML: <div class="row" id="section"> <div class="sectionheading"> </div> <div class="sectionheading"> </div> <div class="sectionheading"> </div> <div class="sectionheading" id="sectionheading"> <span>Text</span> </div> </div> CSS: .sectionheading { display: inline-block; width: 6px; background-color: #df5e5e; height:35px; }...
html,css,position,alignment
As you can see from this screenshot, My icons aren't aligned with their titles. They are written as two unordered lists. The only solution I have right now is to give individual margin-left to each of the icons, but I'm hoping there is a better way to do it. Any...
html,css,forms,alignment
I have a login form I'm creating... The problem is, I can't align the text boxes and text correctly. It looks like this at the moment: But i need it to look like: This is very hard to explain. What I really want is for the text and text boxes...
c#,asp.net,textbox,alignment
here is the code I create textbox from C# code.. for (int x = 0; x < 30; x++) { TextBox txt = new TextBox(); txt.ID = "txt - " + x.ToString(); data.Controls.Add(txt); data.Controls.Add(new LiteralControl("<br/>")); } all textbox will be stick to each other.. I wonder can I add padding-top...
html,css,responsive-design,alignment
I've seen some similar questions to this, but most seem to lack images that thoroughly display what the problem is. I'm trying to get the following responsive layout to work when narrow. It looks like this right now: Here's what I want it to look like. Note that the left...
uitableview,swift,alignment,custom-controls,subtitle
I am trying to display a page like the following page title (left align) region name(center align) people in the region(subtitle with email in the detail label) But if I choose subtitle as cell style, everything will be left aligned and I cannot change them in the code. Then If...
html,css,alignment
I can set the form width manually but every changes in the <input> width will lead to the troubles, specifically I'll be should adjust form width again. I need scalable alignment i.e. changes in input width shouldn't impact on the form's alignment. form { width: 400px; margin: 0 auto; }...
html,css,alignment
I want to have the H3 and P tags on the same line in pairs. I do not want to use the tag <table>. HTML: <h2>SERVERS:</h2> <!--I want each set of H3 and P to be on the same line--> <h3>Server 1 Status:</h3><p id="running">Running</p> <h3>Server 2 Status:</h3><p id="notRunning">Not Running</p> <h3>Server...
css,forms,drupal,alignment,inline
I have an advanced search form (click "Advanced search") here in Dupal 7 - http://www.ibuild.ph/mtf-rdp-minimal/search/node and contact form here - http://www.ibuild.ph/mtf-rdp-minimal/contact. The search fields are inline, while the contact fields are positioned below the labels. Is there a way to inline position the fields with the text labels and make...
java,javafx,alignment,toolbar
I'm trying to create a customized toolbar in javafx. This toolbar should be able to display controls in the center, in the left side and in the right side (three sections) of its surface. The problem is that I have no idea to achive this. I read many hints related...
css,alignment
I've tried to reuse the ruby layout from the learnJapanese reddit (example) which works with <a href='#reading' title='hiragana'>japanese kanji</a> and then does display the hiragana before the title via css for #reading :before. In my case I want to display the reading below the word (using css :after) but I...
javascript,html,css,alignment
I am having problems aligning elements on my page properly. I have a live example here..http://newbapps.com/8ball/ The div 'answer' should be overlayed over the triangle in the img 'ball'. The problem is, I want this too look properly centered even with different window sizes. If I was using pixel width/height...
html,css,text,alignment,height
CSS: I want to make 3 columns of text aligned at the same height or line all the time even when I resize the window. To illustrate what I am talking about please take a look at the images by following this link: https://drive.google.com/file/d/0BywbaHflqMTERFVrNF84YlBUbTg/view?usp=sharing The problem is that the third...
c,text,alignment
I have to solve a problem that involves left justification string length and leading zeros. I have the following table : BEGIN CLOSE CONCATENATE DELETE END INITIALIZE PRINT WRITE This is produced by a simple program. My problem is to find out how to convert it like that : It...
c#,winforms,printing,alignment
I have some code which I'm using to print a receipt from C#. The code below prints OK but I'm struggling with aligning the text left right and center, Graphics graphics = e.Graphics; Font font = new Font("Courier New", 10); float fontHeight = font.GetHeight(); int startX = 0; int startY...
html,css,twitter-bootstrap,alignment
I have this big logo on the home page which should be aligned to center. I managed to center it horizontally, but not vertically. The only solution I could think of was setting the top-margin to 20% but it seems that this is not a good solution for a responsive...
javascript,html,forms,login,alignment
I have button value Show Login Page with onclick funtion to popup login screen. I did the click function correctly but I want that form to show at the top middle of the screen. I tried but it's aligning at the left middle only. <html> <head> <title></title> </head> <body> <link...
html,css,alignment,height
I'm a bit of an amateur when it comes to CSS/HTML web stuff but I feel I am learning a lot and am grateful of all the help offered in all the stack overflow questions. I have run into a problem and been searching for a solution for hours already,...
css,alignment,css-position
¡Hello! I've looking for some questions like this, but i only found this one, and its solution is useless for me. I have a website where some books are shown, it is edicionesparalelo.com, and another one where people can buy those books: tienda.edicionesparalelo.com I'd want to put a button under...
javascript,jquery,html,css,alignment
Overall I would like to have something like this jsfiddle.net/DSghU/ Just that the the whole thing is not sliding out to the left. It shall slide out to the right. So that by clicking on the button the button is going completely to the right side. Edit I was able...
python-3.x,alignment,gtk3
I've got a GUI that uses a GtkEntry widget to get some users input. Here's what it looks like: \ I've got it working like I want, other than the fact that the To: and CC: fields aren't aligned and that's really annoying. Is there any way I can align...
css,alignment
I'm having a problem with a logo I want centre aligned on a homepage. It works fine on desktop but as soon as I look on mobile it fixes itself on the right hand side and falls out of the frame. Here is the background image: #homebg { background: url(images/back.jpg)...
c++,alignment
I am not familiar with c++. But I want to make a output as below format. It is great if someone can give me a code in here. Bill Robinson Gross Amount: ............ $3575.00 Federal Tax: ............. $ 536.25 State Tax: ............... $ 125.13 This is my current source code...
html,css,alignment,row
My site consists of green boxes (divs) that are aligned side-by-side in rows. There are 3 divs per row, and their heights are suppose to be the same. Everything works perfectly except for some reason there are 3 divs not aligning properly at the bottom of the page. The problem...
android,android-layout,alignment,android-linearlayout,android-textview
I'm creating an app that has four different TextView inside a LinearLayout. The LinearLayout has a weight sum of 4 and every TextView has a weight of 1 (to make them with evenly width). My first problem is that two of the TextViews has a bigger height than the other...
html,css,alignment,centering
I have this HTML structure: <div class="metaboxdet"> <div class="metd"> <h1>Hello World!</h1> </div> </div> http://jsfiddle.net/fvueL00n/2/ the problem here is I cant center the div "metd" horizontally and vertically. I have tried adjusting the top, bottom, left and right but it return a not so accurate results. Is there a way where...