Creating a space between image and text

www.bristolequestrianservices.co.uk
On my index page I have created another social media buttons on my page on my right side.  Don't want to confuse people but the #social-media-icons2 are on my right side as I wanted to change the margins. 
I want a gap between my h2 tag "view gallery" and then the photo and a gap after the photo and follow us...  Thanks Karen
css
#social-media-icons
{  float:right; }
#social-media-icons ul li
{display:inline; }
#social-media-icons ul
{margin-top:40px; }
#social-media-icons2
{  float:left; }
#social-media-icons2 ul li
{display:inline; }
#social-media-icons2 ul
{margin-top:10px; }
<div id="rightside">
                  <h2>Latest News</h2>
            <p><a href="newpictures.html">New Pictures Added</a></p>
            <p><a href="testimonials.html">New Testimonials</a></p>
            <h2>View Gallery</h2><br>           
            <img src="images/photos/1a.jpg" /><br>          
            <h2>Follow Us</h2><br>
       <div id="social-media-icons2">
                  <ul>
                      <li><a href="https://www.facebook.com/groups/150449201771804/"><img src="images/icons/facebook.jpg" /></a></li>
              <li><a href="£"><img src="images/icons/rss.jpg" /></a></li>
              <li><a href="http://www.twitter.com"><img src="images/icons/twitter.jpg" /></a></li>
              <li><img src="images/icons/youtube.jpg" /></li>
            </ul>
                    </div>

The H2 tag is absorbing a rule applied to many elements on line 10 of styles.css (margin:0;padding:0;).
Being the H2 tag is used in so many contexts you probably don't want to add a concrete padding rule for all H2's. You might want to add a generic utility class to it, e.g.:
h2.padBottom10 {
   padding-bottom: 10px; /* change to desired amount */
The "Follow Us" tag is a good example of this because it would have absorbed that bottom padding if you didn't use a class for it. It also should have a generic class applied to it so other H2's are not affected, same as above but a different utility class:
h2.padTop10 {
     padding-top: 10px;
As always with CSS there's a million ways to do it but on specialized items like this, if it only appears in one place or has a smaller purpose, applying a general utility class can be useful.
Then you'd just add the class to the H2, e.g.  <h2 class="padBottom10">View Gallery</h2>, <h2 class="padTop10">Follow Us</h2>.

Similar Messages

  • Need help with space between bullet and text in list

    I've been trying to increase the space between my bullet and text in my list. Everytime I increase the margin-left or padding everything moves to the right but the space between the bullet and text stays the same. Would someone help me figure out what I'm doing wrong. Website is located here. http://www.webassistantsllc.com/clients/sport
    Thanks
    Lynne

    Thanks for the help. That worked perfectly.
    Another question on my bullet:
    Is there a way to adjust the position of my bullet in a list? http://www.webassistantsllc.com/clients/sport
    Thanks
    Lynne

  • Space between content and logo

    Playing with fluid layouts and getting a space between logo and content DIV's
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Playing with Liquid Layouts</title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    <body>
    <div id="container">
              <div id="logo">
                  <h1>Welcome to Liquid Layouts</h1>
                  <h2 class="logo">Place your slogan here...</h2>
              </div>
              <div id="navigation">
        <ul>
                  <li>Home</li>
            <li>Page 1</li>
            <li>Page 2</li>
            <li>Page 3</li>
            <li>Page 4</li>
            <li>Page 5</li>
        </ul>
        </div>
        <div id="content">
        <h1>Adding this element creates a space between logo and content...</h1>
        </div>
              <div id="footer">
        </div>
    </div>
    </body>
    </html>
    @charset "utf-8";
    /* CSS Document */
    body
              text-align: center;
    div#container
              margin-left: auto;
              margin-right: auto;
              min-width: 600px;
              max-width: 2000px;
              text-align: left;
              width: 85%;
    div#logo h1, h3
              padding-left: 20px;
              margin-bottom: 0;
    div#logo h2
              padding-left: 35px;
              margin-top: 0;
              font-size: 125%;
    div#logo
              background-color: #F00;
              width: 100%;
              height: 300px;
    div#navigation
              background-color: #0F0;
              width: 25%;
              height: 600px;
              float: left;
    div#navigation ul
              padding-left: 25%;
              font-size: 150%;
              list-style-type: square;
    div#content
              background-color: #C93;
              width: 100%;
              height: 600px;
              margin-top: 0px;
    div#footer
              background-color: #69F;
              height: 30px;;
    .footerP
              margin-top: 0px;
              padding-left: 2%;
              line-height: 35px;;
    PICTURE:
    [IMG]http://i.imgur.com/1nGUG.jpg[/IMG]

    The space is caused by the default margin in your H1 tag. As such, you need to define a style for H1:
    h1{
    margin-top:0;
    padding: ??;
    You can add padding to move the H1 away from the edges of the surrounding DIV.
    EDIT:// An after thought. If you are "Playing with fluid layouts", you might want to consider not using heights and/or set the heights/widths in % values.

  • How do i create a website that allows customer to upload images and text?

    I need some help i have a friend who has asked me if i can create a website that allows them to upload their own images and text at their leisure.
    His company is in the car sales trade so they need to regularly be updating their stock, and this needs to be done by somebody with limited computer knowledge so ease of use is fairly important.
    I am using dreamweaver cs4 on a G5 Imac running Snow leopard 10.6.8, my skills are limited to creating uncomplicated websites but i am very keen to learn, i am aware of content management systems such as Druplal but have zero knowledge on how to use these.
    Any assistance would be greatly appreciated
    Andy Barrington
    www.andybarrington.com

    You can take a read here
    http://www.hotscripts.com/category/php/scripts-programs/classified-ads/autos/
    http://icloudcenter.com/auto-dealer-car-sales-script.htm
    Although putting together a form that would upload images and all the descriptions required seems like a fairly straghtforward project, depending on your current skill set.
    Gary

  • Create an image and text rollover in Dreamweaver?

    I'm wanting an image and text to have a link and then the image and text to change to another image and text automaticly.  Here is a link that I want it to look like.  (local hot spots) Is there a way in Dreamweaver to do it or by inserting HTML code...
    http://thegospot.com/
    Thanks to any help I can get.

    All depends on what you want. 
    CSS a:hover affects the text/image mouseover state.
    http://alt-web.com/DEMOS/CSS-Button-Sprite.shtml
    Disjointed content inside <span> tags displays wherever you code it to appear on hover.
    http://alt-web.com/DEMOS/CSS-Disjointed-Text-Rollover.shtml
    Nancy O.

  • How to maintain space between table and header in ssrs

    Hi Everyone, 
      I have created a report. In page header of this report, On First Page space between header and
    body is good , but from next page, space is not maintain. 
    Please suggest me how to maintain space at every page of report.
    Thanks. 

    Can you post a screenshot?
    This can be achieved if you are repeating column headers on each page. Just change row height of header and align text to bottom, and make sure there is no space between Page Header and Tablix.
    - Vishal
    SqlAndMe.com

  • Unwanted spaces between images, fine in browsers spaces appear in email clients

    using the help and tips on here i managed to eliminate the gaps between images and the borders around hyperlinked images so that it looks good in browsers unfortunately when i go to view it in outlook it creates spaces, weirdly only between some images and not all. I'm a novice so a step by step guide would be super. Please see the code below. the gaps appear above and below images:
    Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-to-cha nge-your-Gateway-Service-Provider_03.jpg
    Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-to-chan ge-your-Gateway-Service-Provider_05.jpg
    Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-to-chan ge-your-Gateway-Service-Provider_08.jpg
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <table width="1100" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="226" colspan="6"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_01.jpg" width="1100" height="226" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td height="161" colspan="6"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_02.jpg" width="1100" height="161" style="margin:0; padding:0;display: block;" /></td></tr>
      <tr>
        <td height="552" colspan="3" rowspan="3"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_03.jpg" width="723" height="552" style="margin:0; padding:0;display: block;" /></td>
        <td height="137" colspan="2"><a href="http://www.pcpro.co.uk/reviews/security-appliances/380047/cyberoam-cr35ing#ixzz2MfSGzpIo" style="border: 0"><img class="noBorders" src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_04.jpg" width="348" height="346" style="margin:0; padding:0;display: block;" /></a></td>
        <td width="29" rowspan="12"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_05.jpg" width="29" height="983" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td height="206" colspan="2"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_06.jpg" width="348" height="206" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td height="183" colspan="2" rowspan="5"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_08.jpg" width="348" height="183" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td colspan="3"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_07.jpg" width="723" height="35" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td width="235" rowspan="2"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_09.jpg" width="235" height="81" style="margin:0; padding:0;display: block;" /></td>
        <td width="291" height="26"><a href="http://www.pcpro.co.uk/reviews/security-appliances/362284/sonicwall-nsa-2400mx" style="border: 0"><img class="noBorders" src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_09-10.jpg" width="291" height="26" style="margin:0; padding:0;display: block;" /></a></td>
        <td width="197" rowspan="2"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_11.jpg" width="197" height="81" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td height="55"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_12.jpg" width="291" height="55" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td height="67" colspan="3"><a href="http://www.cyberoam.com/pressrelease_iso20000.html" style="border: 0;"><img class="noBorders" src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_12-13.jpg" width="723" height="67" style="margin:0; padding:0;display: block;" /></a></td>
      </tr>
      <tr>
        <td colspan="3" rowspan="5"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_14.jpg" width="723" height="248" style="margin:0; padding:0;display: block;" /></td>
        <td height="62" colspan="2"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_15.jpg" width="348" height="62" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td colspan="2"><a href="http://www.cyberoam.com/downloads/Brochure/CyberoamNGSeriesBrochure.pdf" style="border: 0;"><img class="noBorders" src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_15-16.jpg" width="348" height="29" style="margin:0; padding:0;display: block;" /></a></td>
      </tr>
      <tr>
        <td colspan="2"><a href="http://www.vcwsecurity.com/training/webinars.html" style="border: 0;"><img class="noBorders" src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_16.jpg" width="348" height="27" style="margin:0; padding:0;display: block;" /></a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_18.jpg" width="348" height="36" style="margin:0; padding:0;display: block;" /></td>
      </tr>
      <tr>
        <td width="253" height="25"><img src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_19.jpg" width="253" height="94" style="margin:0; padding:0;display: block;" /></td>
        <td width="95"><a href="http://www.vcwsecurity.com/index.php" style="border: 0;"><img class="noBorders" src="Images/Cyberoam-CR35iNG-raises-the-bar-for-performance---there-is-no-better-reason-t o-change-your-Gateway-Service-Provider_19-20.jpg" width="95" height="94"style="margin:0; padding:0;display: block;" /></a></td>
      </tr>
    </table>
    </body>
    </html>
    Any help would be great. Thanks

    You cannot ever hope to successfully create an html email using one big table. It's bad enough when going down that route for ordinary browser viewing but when it comes to email clients they are a lot less forgiving.
    You need to use a series of simple nested tables. No spliting or merging cells, that's suicide.

  • How to increase the width size between PROMPT and TEXT BOX?

    Hi Gurus,
    my page having MessageTextInputs. Normally page runs displays the Prompt name and one text box will displayed.
    my requirement is
    1) how to increase the width size between PROMPT and TEXT BOX?
    2)prompt name displays like
    elephant
    xxxxxant
    xxxxRose
    here xxxxx indicates SPACE
    but my client requirement is don't displays the SPACES in left side.
    so our requirement is in page PROMPT displays like
    elephant
    ant
    rose
    How to achieve this plz help me
    its very urgent
    Thanks

    Hi,
    Create a table layout region and under that use 'messageStyledText' for displaying the prompt and use 'messageTextInput' for text field without giving any prompt to that.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?

    How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?
    When I drag the item off of the trifold that I am creating, it just disappears but I still want to use it.  I just need to move it out of the way to modify other portions of the document.
    thanks,
    C

    Add another page below the current one to use as a storage area. You can't use the grey area around the page for storing items you want to use later.
    Go to the Pages Menu>Provide Pages Feedback if you would like to request this feature be added in future versions.

  • How to send files like audio,video,images and text via RMI..

    Hi everyone,
    As I am working under a project, my own, of creating a chat machine, I've thought to make it capable of doing everything that MSN or yahoo MSN can do. Till now I've just been able to send messages and some small icons as expressions. So, my next step will be making my progam able to send even other files like audio, video, images and text to the person on the other machine to whom I'm chatting. But as I don't have any idea on how to start doing it, I want anyone who think he/she can help me to give me the basic logic that is used to do so. I would very much appreciate it. I've used vectors to store the text messages which is visible to all the users using the chat program enabling them to see various messages in it.
    thank you...
    Jay

    Hi,
    Now, I got stuck because the code doesn't seem to work well. For large files with around 40 mb or more size couldn't be sent. I have constructed the code, just rough sketch, as follows:
    ** In the Server Implementation class I've used FileInputStream to read the contents of a file that is sent as an argument to the method.
    ** Similarly, in the client side I've used RandomAccessFile to save the received array of bytes.
    public void sendFile(File f)
       ChatServer cs=(ChatServer)Naming.lookup("rmi://localhost/ChatServer");
       cs.readsAndStoreTheFileInTheServer(f); // In the Server Implementation the contents of the file is read and saved in an array of byte. later method is invoked by the client to get the array of the saved byte.
       cs.message("-Accept-"); // When a client receives this word then a JComponent with accept and cancel button will be constructed from where other clients can save/cancel the sent file.
    }For small size files this code works well but for files more than 40 mb of size it is useless. I wonder if there's any other alternative.
    regards,
    Jay

  • Changing images (and text) in InDesign file to spot color.

    Hi, Im trying to create a two color job in InDesign that will be black and red. The problem I have is that our imagesetter is not separating the colors.
    I was told that the red color needs to be a spot color in InDesign for the imagesetter to know to separate the colors. Otherwise, if the colors are not set as a spot color then it sends the file as CMYK separations or grayscale separations.
    The question I have is how can I change the images (and text) in my InDesign file to be set as a spot color? Thanks in advance.

    Please re-ask your question in the ID forum:
    Mike

  • SmartForm: Require Space between the various text mentioned in the invoice

    Hi Experts,
    The issue is that the user expects a space between the various text mentioned in the invoice so that it is easier to read the data.
    Current text:
    "LubeAnalyst#Nr.:1234212/AMOTDate:25.11.09Component:GasMotor"
    Users request of how he wants the text to look like with spaces:
    "LubeAnalyst#  :1234212/AMOT  Date:25.11.09  Component:GasMotor"
    Our suggestion to the user:
    1) Go to the sales order in change mode using transaction VA02
    2) Double click on the line item (material)
    3) Go to the texts tab and then to additional billing text
    4) You will find the text in the adjacent window
    5) You can edit the text so as to enter a space at the beginning of each line and the same will be reflected in the invoice document after you reprocess the output
    6) Save the changes by clicking on the save button
    Users Response:
    The order will be generated automatically.
    The order will be generated as a after event order and after this the invoice will be send directly from our cmpany to the customer, so we have no possibility to make any change in the system.
    The order and invoice are processed completely automatically, so we are unable to do any manual job!
    It's an auitomatic process, so the first solution, which is described down, isn't helpfull for me.
    Help Regarding:
    Dear Sdners, please guide me towards a fix for this issue.
    Regards,
    SuryaD.
    Edited by: SuryaD on Nov 27, 2009 12:57 PM

    Hello!
    It seems, that the text is everytime containing same tags as "LubeAnalyst", "Date" and "Component". I would add a coding node before the text-node that uses the command "find" searching the string for these tags and then split the string by given positions of "find" using the command "split" or by using the string offset.
    Kind regards,
    Klaus

  • Problem with images and text displaying correctly

    I don't really know how to explain this problem and I had two screenshots ready to upload to show the before and after but we apparently can't upload photos now...SOOOO I will try my best.
    The issue began when I got a new computer at work (Windows 7 instead the Windows XP everyone else has) and was/is present for me in InDesign CS2 and since we were planning on updating to CS5, I figured that having an updated version would fix whatever issue it was. That was a wrong assumption unfortunately.
    When I open any document, all images and text are displayed properly until I scroll up/down or side-to-side and NOT using the scroll wheel for up/down. This is probably so confusing and I'm sorry I can't describe it better...the mouse I use has two programmable buttons that I set to coast up and down and to go side-to-side I can push the scroll wheel to one side or the other and it coasts that direction. When I do either of those things, the text looks like it is permanently greeked and the images look....weird lol like they are in 16 bit or something like that. To fix the problem in CS2, I have to click and hold on a text block until I am able to adjust text so that I can see it adjust in real-time. In CS5, I have to do the same basic thing except I don't have to click and hold as it does that by default (awesome feature btw!!)
    I have already updated my graphics card driver (Nvidia 9400 GT 1GB) and my processor driver (Intel Core2Duo 3.0ghz) and I have 4GB of RAM. I tried updating both CS2 and CS5 but both are updated already. I've also tried doing the whole inx. export and cleaning the preferences file or whatever that is called. Nada. If someone thinks they can help me, I can send them the two images I was going to upload here. Email me at justgeig (at) gmail (dot) com Thanks in advance!

    maybe greeked isn't the right word...i don't know how to explain it
    here is the correct view. It is much more noticable when the whole document shows this.

  • How do I save image and text as a single image in InDesign CS5.0?

    How do I save an image and text as one image in InDesign CS5.0? NOT 5.5.
    I need to save the image as a 72-dpi, jpg file for ePub purposes. I designed a book and am handing it off to someone for ePub.
    This is what I've tried:
    1) Copied from InDesign, pasted into a PhotoShop doc as a Smart Object. Saved it as 72 dpi jpg, then imported back into ID.
    2) Took a screenshot of ID page, placed it in PS, saved as 72 dpi, imported into ID
    3) Saved page as a PDF from InDesign, then saved PDF as 72 dpi jpg, then imported into ID.
    4) Save page as a PDF from InDesign, placed into Photoshop and saved
    as 72 dpi, then imported into ID.
    5) Saved as an EPS from InDesign, placed in PS, then imported back to ID.
    In all cases, the type looks terrible. It doesn't seem to matter whether I copy or place into Photoshop, though placing is slightly better.
    HELP!!!

    In all cases, the type looks terrible. It doesn't seem to matter whether I copy or place into Photoshop, though placing is slightly better.
    Naturally what you did will result in rasterized text. Did you preview with high quality settings?
    Are you sure the people who will handle that downstream need pixel images and do you have the exact pixel dimensions needed?
    Why did you place the image back in Indesign, by the way? 

  • How do I add space between lines of text in the same cell on Numbers 3.0.1

    I just updated to Mavericks 10.9. In numbers, I used to be able to uncheck a box in the inspector that would make it so the Return key did not move to the next cell, but instead allowed me to add more space between lines of text in the same cell.
    How can I do this in the new version of numbers?

    HI ilb,
    Numbers 3 is a complete rewrite of the application. This preference option hasn't (yet) been included, but N3 is very much a 'work in progress. A word to Apple via Provide Numbers Feedback asking to have this option included in Numbers 3 might be a useful step. You'll find Provide Numbers Feedback in the Numbers menu in Numbers.
    Regards,
    Barry

Maybe you are looking for