3

How to access this class in css

 3 years ago
source link: https://www.codesd.com/item/how-to-access-this-class-in-css.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to access this class in css

advertisements
<form name="fc">
         <div class="input-text">
         <input type="text" id="postquestion" name="postquestion" style="font-size:12px;"class="ps" value="" placeholder="What's Your Question..?" data-mini="true" />
         <a href="#dialog" class="dig" value="" data-role="button" data-icon="plus" data-inline="true" data-rel="dialog" data-iconpos="notext"></a>
         <input type="submit" value="Ask" class="ask" data-inline="true" data-mini="true"data-theme="b"/>
      </div>
</form>

this code is not working

.ask
{
margin-top:-10px;
}

i'm newbie to css , please help me. http://jsfiddle.net/shreeramns/4dRuP/


input is an inline-element, thus it cannot have any margin applied. You need to make it a block-level element:

.ask
{
    display: inline-block;
    margin-top:-10px;
}

Furthermore, you shouldn't use negative margins if possible, use positioning instead.

Tags css

Related Articles

How to access a class in CSS?

I want to access at class <div> with class .mine and make it's background: blue. How can I do that? HTML: <div class="container"> <div class="row"> <div class="col-sm-4"> <h2>Meet Momẽnto.</h

JavaFX - Label & mdash; How to access the class member

So my question is very simple. I can access class members in a separate class when they are a String rather than a Label, but I can't seem to, when they are Label. Using JDK 7u6 (w/ JavaFX 2.2). Simple examples. First one works, second one doesn't. f

Does anyone know how to access this vast nested table?

Does any know how to access this huge nested array? I'm doing a print_r to come up with this result. Please look on the image attached to see what I'm referring. For example I would like to access the entity_id in that array. How would I do that? Tha

How to access the .class of a class with a generic?

When it comes to classes without generics, i can access this .class attribute like this: class Foo{ Class<Foo> getMyClass(){ return Foo.class; } } but how do i access this ".class" attribute if Foo has a generic? like this: class Foo<T&

How to access this type of data in Spark

The data is stored in the following forms: data/file1_features.mat data/file1_labels.txt data/file2_features.mat data/file2_labels.txt ... data/file100_features.mat data/file100_labels.txt Each data/file*_features.mat stores the features of some samp

How to create this form of CSS button only?

I'm stumped for an answer how to do this button with CSS. The easiest way was using an :after with a background image for the right part but this isn't nice and clean when it comes to hover effects. I've been able to solve it by myself with just the

How to access the class variable in the jquery event?

If I'm inside a jquery event, I'm not sure how I can access class variables. Example below /// <reference path="../typings/jquery/jquery.d.ts" /> export class Notes { // i want to access this inside of the click event test = "test&quo

How to access the class variable in Python?

I'm new to Python programming and wondering how can I access to variables I have declared in one file to another? I'm working on Django and have two files: forms.py class ContactForm(forms.Form): full_name = forms.CharField(max_length=100) email = fo

How to access $ (this) div in angularjs

I want to change the background of div that is clicked. So, how i can access $(this) div in angular? My code is: <div id="single" ng-click="changeit()"> foobar </div> And function is: $scope.changeit=function($scope){ // jq

How to Access the Class Variable from a Deep Child Anchor

How to access class variable within deep-nested child? Scenario: class with public variable myVar and I want to access it from sixth child. I am looking for less stupid way than MovieClip(parent.parent.parent.parent.parent).myVar (which works) Edit:

How to access a class variable of the same class

In this snippet: <?php namespace App; use Illuminate\Database\Eloquent\Model; class Product_variant extends Model { protected $primaryKey='variant_id'; public $translationForeignKey = $this->primaryKey; } This rule is not working: public $translatio

How to make this arrow in CSS only?

I'm building a wizard-like ordering process where I have this menu: The active page is colored green (in this case, Model). How does one make this arrow using only CSS?: At the moment i'm achieving my goal by using several divs and images: <div class

How to access private class fields from a test using UnitTest ++?

I'm facing a nuisance when coding my unit tests using UnitTest++. I'm wondering how to access private member class fields in a clean way (or maybe any way...) By now, I have a solution to access protected members using a class fixture deriving from t

How to access this object property with a hyphenation name?

I'm using a PHP class someone wrote to interface with the BaseCamp API. The particular call I'm doing is to retrieve the items in a todo list, which works fine. My problem is, I'm not sure how to access just the todo-items property of the object that

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK