9

How do I get my text centered under the picture, not next?

 2 years ago
source link: https://www.codesd.com/item/how-do-i-get-my-text-centered-under-the-picture-not-next.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.

How do I get my text centered under the picture, not next?

advertisements

In the HTML markup below, what do I need to do in order to get the text, "What is this?" to be positioned BELOW the image? Initially, I placed the text in <p> tags but, although the text was positioned correclty, I lost my desired hyperlink behavior.

Thanks!

<div class="HorizontallyCentered">
    <a href="qr.aspx">
        <img alt="Image of JA10" src="files/ja10.png" height="150" width="150" />
        What is this?
    </a>
</div>


try this css

.HorizontallyCentered
{
    text-align: center
}
.HorizontallyCentered img
{
  display: block
}

that should force the text on to the line below.

Related Articles

How do I get a text file from the lens c of the URL?

Currently I'm working on translate application , I referred from read text file returned by URL to get the translated text file https://translate.google.com.tw/translate_a/t?client=t&hl=en&sl=" + sl + "&tl=" + tl + "&ie

CSS positioning: a text string that is too long puts the text under the image, not next to

When my a text string gets too long, it goes under an image, when instead, I'd like it to just go to a new line and remain to the right of the image. How do I make the text continue to stay to the right of the image instead of going beneath that "rac

How do I get Sublime Text 2 with Ruby on Rails?

I'm new to Ruby on Rails. Here's what I've done so far: I've installed XCode, Homebrew, RVM, Ruby and Rails. Now how do I get Sublime Text 2 to work with Ruby on Rails?First thing you should do is install Package Control if you haven't already. This

How to get old text and change the text of the text box on the TextChanged event of the text box?

I am fairly new to c#. I have requirement of previous text and newly changed text of text box on text changed event of the same. I tried to get text on textchanged event but it is new text only. How can I get previous text also? e.g. Say I have a tex

How do I get a flat list of the dictionary key query where values ​​are lists?

I am trying to create an event/messaging system where the subscribers can subscribe to general event types or specific event types. I have a dictionary of event types containing lists of subscribers of said types, and, for notifying the events to the

How do I get items from a template that are not used in the ManyToMany relationship?

I have a Django model (ModelA) with a ManyToManyField linking to another model (ModelB) like this: class ModelA (models.Model): field = models.ManyToManyField('ModelB',blank=True ) class ModelB (models.Model): .... How can I get all objects form Mode

How do I get an iframe to load the entire page on the next page?

How can I get an iframe to load the whole page into the next page? I am a N00b html coder and i was wondering <center> <a href="www.google.com">Home</a> <hr> and loaded it into an iframe, and click on it, it loads inside

How can I get a quick estimate of the distance between a point and a bicubic spline surface in Python?

How can I get a fast estimate for the distance between a point and a bicubic spline surface in Python? Is there an existing solution that I could leverage in SciPy, NumPy, or some other package? I've got surface defined by a bicubic interpolation as

Can not add text under image without the clear tag and text alignment centers around the contents, not the page

For some reason text1 goes to the next column instead of under the image like it should unless i use a clear tag. The problem with using a clear tag is i cannot add text2 around where text1 was previously before the clear tag which is why you see a b

How do I get Resx texts to be used in Javascript?

We are building large ASP.NET applications for the intranet use in multiple languages/cultures. We utilize the Globalization with RESX files and use GetResourceText on the server side to get the localized texts. Lately we are doing more and more clie

How do I get a text node after element?

Using jQuery. I have the following html: <input type="checkbox" name='something' value='v1' /> All the world <br /> How would I get ONLY the text. what selector should I use? (I need the "All the world") I also can not touc

How do I get span text in the list item using jQuery?

I have t he following list item: <li class="item" id="44"> <div class="name">Bogstadveien</div> <div> <span class="city">Oslo</span>, <span class="country">Norway&

How do I get a text box with ValidationGroup in jQuery?

I have an ASP.NET TextBox ID="txtDate" in my usercontrol. It has ValidationGroup="MyUC" set. Now my UC is inside a Repeater Control. So there will be multiple instances of the same textbox. I am able to get all textboxes like: $("

How to make the cursor text stay under the image

I have the following page: http://jsfiddle.net/ybv4jd9d/ HTML: <div class="box hidOverflow marginCenter"> <div class="caption setLeft"> <h3>This is Image One</h3> <p>This is a description or a start to the

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK