css input align with button [duplicate] - forms

This question already has answers here:
Make form button/text field same height in all browsers?
(7 answers)
Closed 8 years ago.
IE 6
FireFox, Chrome, IE 8
i cant get the button to align the same for all the browsers.. is there a hack for doing this alignment?
input, button {
float: left;
height: 20px;
}

vertical-align: bottom;
vertical-align: top;
Usually one of these works.....(firefox)

Related

Ionic Input Box Width

i have a problem with the input from ionic framework. input seem to fit to mobile device / small screen device, it cannot stretch to fit to medium or large device view port. is it deliberately or a bug there? and how make it fit to any screen at least to medium screen as i am writing an apps for tablet or ipad.
this pen explained the case, try to type along words / sentences in the your own content box.
input code
<input type="text" placeholder="Your own content" ng-model="customQuote" required>
It seems to me you find the bug. You should patch ionic.css:
.item-input-inset .item-input-wrapper input {
padding-left: 4px;
height: 29px;
background: transparent;
line-height: 18px;
// you should add the following:
box-sizing: border-box;
width: 100%;
}
or make your own style and add to your input

how to increase the margin below this form

I'm not able to add some blank space below this form. The bottom of it still sticks to the edge of the page.
form {
display: inline;
text-align: center;
margin-bottom: 50px;
}
May I know how I can fix this
Thanks!
You can't add margin-top and/or margin-bottom to an element with display: inline because it will simply have no effect (although margin-left and margin-right will have) :)
Do you really need to apply display: inline to a form?
Perhaps if you could supply some more details I could try to be more helpful.
The margin clears an area around an element (outside the border). The margin does not have a background color, and is completely transparent.
The top, right, bottom, and left margin can be changed independently using separate properties. A shorthand margin property can also be used, to change all margins at once
In CSS, it is possible to specify different margins for different sides of an element
EXAMPLE:
ClassName Or ID{
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 50px;
}

SASS background issue in iPhone and iPad [duplicate]

This question already has answers here:
Background image not showing on iPad and iPhone
(15 answers)
Closed 8 years ago.
I have an issue using the background property in the sass
When I write:
background: url(../images/assets/calendar.png);
background-repeat: no-repeat;
background-size: 250px 230px;
background-position: 51px 91px;
background-color: $mainColor;
The sass compile it for:
background: url(../images/assets/calendar.png) 51px 91px/250px 230px no-repeat #f68e34;
But, the iPhone and iPad browsers don't understand this syntax, how can I resolve it?
Thanks in advance
Have you tried using background-image instead of the background shorthand?
If you write out each rule iOS/Safari will understand it.
background-image: url(../images/assets/calendar.png);
background-repeat: no-repeat;
background-size: 250px 230px;
background-position: 51px 91px;
background-color: $mainColor;

eclipse e4 remove gaps between parts

can I somehow remove the gaps between the parts in an eclispe e4 application. There is always a couple of pixes (like 5 or so) gap where the background color can be seen between my tabs. However, I need the full space for the parts and thus want to get rid of this gap.
I tried already with css-properties (margin and padding) set on CTabFolder and MPart without success..
Any ideas?
Turning off the shadow on the part stack removes most of the space:.
The padding for the part stack adjusts the space inside the border.
.MPartStack
{
swt-shadow-visible: false;
padding-top: 0px;
padding-left: 0px;
padding-right: 0px;
padding-bottom: 0px
}

How do I create the panel shadow effect as found on Google Maps, using GWT? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
HTML/CSS: How does Google create this drop shadow over their maps?
Using GWT and the Google Maps component, how do I best create the "panel shadow" effect as seen in the screenshot?
Try the box-shadow CSS property (make sure the browsers you are targeting supports it)
-webkit-box-shadow: inset 3px 3px 5px 5px #000000;
-moz-box-shadow: inset 3px 3px 5px 5px #000000;
box-shadow: inset 3px 3px 5px 5px #000000;
Use rgba color spec with opacity to get a "lighter" shadow.