How to Make Text Stay Inside Div?


Tags: html,css,text

Problem :

On this site, this text "Dog sitting allows your dog to stay at home in a relaxed and familiar environment while you're away." is supposed to be higher, next to the photo.

Any idea how to get the text to be up next to the image where it's supposed to be?

CSS:

#top    {
    height:400px;
    width:1024px;
}
#textright  {
    float:right;
    clear:both;
    width:300px;
}

Thank you,

Tara



Solution :

Remove the 16px margin as follows:

div#textright>p:first-child
{
margin-top: 0;
}

    CSS Howto..

    how to use removeclass() function in Jquery to disable the CSS

    Mapbox GeoJSON loaded via local URL: icons not showing popup properties

    How to make a Xul button bigger using css as it get focus?

    How to auto-resize tabs to fit a fixed-width container?

    How to make a header bar fold over the webpage css

    HTML+Javascript: How can I Load Data in Div via Class?

    How do I use transitionend in jQuery?

    CSS: How to change font-size of something that already has “font-size: 0.9em !important” on it [duplicate]

    How to stretch an element out vertically so that it is always at least as tall as its sibling?

    How to display a box of color beside a table row using CSS?

    How to prevent selecting text on double click?

    How to create a code block on website

    How to align image as pseudo element?

    How to avoid the overlapping of the button?

    How to include button text and links as part of css

    How to customize HTML/CSS tooltips?

    How to ensure dynamic CSS is loaded first before AJAX content?

    how to apply the height css property on ie9 just?

    how to stop only the hover pointer event in css

    How to align Navbar at bottom of window, but have content under this in CSS?

    JavaScript: how do I make a tooltip follow the cursor *and* flip on collision?

    HTML and CSS: How to lay out a div tag with width:100% and left:300px

    How to change background [closed]

    How does Bootstrap Grid really work?

    Only show limiited div's depending on browser width

    how to keep table 100% wide?

    CSS & Button: How to override native CSS of html buttons element?

    Twitter Bootstrap - how to add some more margin between tooltip popup and element

    How to Remove the Awkward Margin to the Left of my Unordered List?

    Why doesn't this site have a Google logo for their use of Google Maps? I want to do this. How? [closed]