Images, CSS and p Tags

I have a site I recently launched with Contribute and Dreamweaver.  I am using CSS to control the alignment and spacing of images.
The problem I'm having is that I get strange rendering from pages created in Contribute because, by default, it wants to put images that are inserted in pages with text inside paragraph tags (<p>).  Even if the image is on its own line, it is inserted in a <p> tag.  I've tried adjusting my CSS to accomodate this, but it doesn't solve the problem.
Does anyone know how to insert an image without putting it inside a <p> tag, if there is text on the page?  (Inserting an image on the page by itself does not create a <p> tag.)
The only workaround I've been able to find is inserting a horizontal rule, selecting the horizontal rule, inserting the image and then deleting the horizontal rule.  This works, but it's far from ideal.

Thanks for the input.  I'm well aware of how to use CSS.  The focus of this discussion was really how to get images out of <p> tags, not how to write a bunch of extra CSS to undo what Contribute really shouldn't be doing to images.
I am committed to use CSS on my site, but I am also committed to making that CSS easy to use, which mean working at tag and block levels as much as I can, rather than becoming "class happy".  I know I have to use classes to do the left and right alignment, but let me share a specific scenario where CSS shouldn't be used.
I have an <h2> element that is the full width of my container.  Below that, I have a <p> element for my paragraph.  For my design, I want the paragraph to have 1em of padding.  Now, I want an image banner that is the full width of the container, so it can nest under the <h2> and be the same width.  If I insert the image in Contribute above the <p>, it puts that in a <p> tag.  Now, the image is too wide because it's trying to add padding around something that is already the full width of the page.  I can't add a rule to remove the padding from all images, because that would remove padding from images that need it also.
I could write a custom CSS class to resolve this issue, but that takes time, adds to my CSS file size and gums up my dropdown menu with an unnecessary class that's only used to solve this one scenario.  Instead, it makes more sense to just break the image out of the paragraph tag and treat it as a block.
This is an example of what I was trying to get Contribute to do.  I just needed the image tag as such, an image, not an image inside my paragraph padding rules.
In this case "remove paragraph breaks" is the most logical choice, rather than writing a bunch of CSS to undo Contribute's quirks.

Similar Messages

  • Regarding  CSS and CLASS TAG.

    Hi Java People,
    I am basicaly an ABAPer , can anyone please tell me where is are attributes of the Tag CLASS defined in an HTML page?
    Basically i am working on BSP where we have to use Javascript along with ABAP.
    In the layout part of BSP i am not able to find the definition of the CLASS tag.
    Thanks in advance.
    Regards,
    Vevek.

    Dear Vivek,
                      This is the following example where you can use the CSS and JSP togeather...
    http://www.w3schools.com/css/tryit.asp?filename=trycss_background-color
    http://www.w3schools.com/css/css_examples.asp
    Jsp Examples to use CSS in Class Tags:
    <table class="table_bdr">
                        <tr>
                     <td class="datatxt">
                     <td><input type="text" name="assoid" value="" size="10" class="inputText_Full" /></td>
    Reward Points if useful

  • Why aren't my CSS and div tag boxes displaying the background images I'm plugging in?

    I'm using the CSS dialog boxes to places images via the background image option into my dreamweaver site. Everything looks fine in dreamweaver but when I view it any of the browsers, two of the images I've place as div tag background images don't work....the overal background image of the site works, but these don't show up ....
    here's my code if it helps to answer
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Main</title>
    <style type="text/css">
    body {
    background-image: url(images/realgrade.jpg);
    background-repeat: repeat-x;
    text-align: center;
    html, body {
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top: 0px;
    padding-top: 25px;
    #wrapper {
    width: 930px;
    text-align: left;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    position: relative;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/possible%20image. jpg);
    background-repeat: no-repeat;
    #header {
    height: 192px;
    width: 237px;
    background-image: url(images/logo_fill.jpg);
    background-repeat: no-repeat;
    position: absolute;
    left: 35px;
    top: -25px;
    #mainNav {
    background-color: #33F;
    height: 200px;
    width: 272px;
    float: left;
    margin-top: 233px;
    #maincontent {
    height: 600px;
    width: 608px;
    float: right;
    margin-bottom: 45px;
    padding-right: 25px;
    background-repeat: no-repeat;
    background-position: center 270px;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/opaqueMaincontent .png);
    #sidebar {
    background-color: #F36;
    height: 250px;
    width: 272px;
    clear: left;
    float: left;
    #footer {
    height: 525px;
    width: 870px;
    clear: both;
    padding-top: 45px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    background-image: url(images/footer_image.jpg);
    background-repeat: no-repeat;
    margin-top: 45px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header">
        <p> </p>
        <p> </p>
        <p> </p>
      </div>
      <div id="mainNav">
    <p> </p>
    </div>
      <div id="maincontent"></div>
      <div id="sidebar"></div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    here's what I'm going for
    here's what I'm getting in the browser
    Please help!

    Your image files are pointing to your hard drive, not your server.  You have this
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/imag es/opaqueMaincontent.png);
    and you should have this
    background-image: url(imag es/opaqueMaincontent.png);
    Also, is your images file named imag es?
    Gary

  • Css and data tag

    Hi All
    I want to change A few data tags I am using in onLine shop I opened in BC, Any ideas how to edit those css code?
    TIA

    Hi there,
    Do you want to edit External CSS files or internal CSS applied on your HTML pages.
    There are number of ways you can edit CSS on a BC site:
    You can Log onto the Admin Dashboard of the BC site, and can click on the Develop Tab, locate that CSS file from the Folders and Files Tree on the left and edit that there. (Develop tab is active if you have used Adobe ID to log in that is a BC Partner on any BC site).
    You can also SFTP the BC site, and can save CSS files locally and edit that in any text editor, save it and upload it. Check article on connecting BC site with SFTP client : Connecting to your site using sFTP
    Another Way is using Dreamweaver and connecting BC site in Dreamweaver , then get the site files, edit CSS files, save changes and put updated files.
    P.S. : Make sure you have saved the original CSS file or have copied the CSS code locally to have it's back up.
    Thanks.

  • Can you place an image in a div tag and then add type over top of it?

    I told someone in class lastweek that I wanted to be able to
    place type over an image. They said you can just add the image into
    the div tag as a background image, which will allow you to then
    type over it if you like. How is this done? I have tried and
    failed. I have an image that is 200x590 going down the left side of
    my page. I want to run type over it, and keep the image consistent
    on every page, but change the header and type. I've seen this in
    several sites. How do you do this with the div tag box model method
    of building a page. Can I insert an image into the div and then run
    type over it. What does the code look like?

    Here's an example of using a css and a background image to a
    table cell...
    sample principle for a div
    #div {styles go here{
    http://tinyurl.com/yqeptp
    You may also want to go through the beginner css tutorials at
    the Adobe
    site:
    http://www.adobe.com/devnet/dreamweaver/css.html
    (pay attention to the ones
    by Adrian), beginner moving onto to creating full css
    layouts.
    Hope this helps :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    Forum Posting Guidelines:
    http://www.adobe.com/support/forums/guidelines.html
    >I told someone in class lastweek that I wanted to be able
    to place type
    >over an
    > image. They said you can just add the image into the div
    tag as a
    > background
    > image, which will allow you to then type over it if you
    like. How is this
    > done?
    > I have tried and failed. I have an image that is 200x590
    going down the
    > left
    > side of my page. I want to run type over it, and keep
    the image consistent
    > on
    > every page, but change the header and type. I've seen
    this in several
    > sites.
    > How do you do this with the div tag box model method of
    building a page.
    > Can I
    > insert an image into the div and then run type over it.
    What does the code
    > look
    > like?
    >

  • Images, ,js, .css   and jsp

    Hi i've a problem, i wrote an application jsp based, each jsp produce an html file that contains tags <img, that link to .css and .js files, i added to my jsp the scriplet:
    <%
    response.addHeader("Cache-Control", "no-cache");
    response.addHeader("Pragma", "no-cache");
    response.addHeader("Expires","-1");
    %>
    to prevent caching into the Temporary Internet files, because i don't want to give the user my application, html files arn't cached but images, .css files and .js files are still cached.
    What can i do to prevent this????
    Thankk for all lbdb:

    Thank you rameshinjava, i tested your solution but it does'n work i still view the .js,.css and .class(applet) file into the Temporary Internet Files directory.
    can anyone give me one other solution?

  • How to use CSS and images in a plsql-dbms_output reports?

    Hi.
    Windows 2000 SP4
    SQL Developer 1.2.1.32.13
    Java 1.5.0_07
    Oracle 9.2.0.6
    I'm trying to create a plsql-dbms_output report with HTML that uses a stylesheet (CSS) and an image. These seem to be ignored by the report viewer.
    The following example works fine in Internet Explorer 6 but the stylesheet is ignored by the viewer and the viewer does not show the images (shows broken images instead). I've tried with various image types (PNG, GIF and JPEG).
    <!--
    begin
    dbms_output.put_line('<head><link rel="stylesheet" type="text/css" href="file://c:/temp/core.css"/></head><body>');
    dbms_output.put_line('<H1>This is Level-1 Heading</H1>');
    dbms_output.put_line('<H2>This is a Level-2 Heading</H2>');
    dbms_output.put_line('<p>This is regular paragraph text.</p>');
    dbms_output.put_line('<img src="file://c:/temp/fig01.png"><br>');
    dbms_output.put_line('<img src="file://c:/temp/fig01.gif"><br>');
    dbms_output.put_line('<img src="file://c:/temp/fig01.jpg"><br>');
    dbms_output.put_line('</body>');
    end;
    -->
    Is the HTML viewer limited to not support stylesheets and images?
    Thanks in advance.
    Cheers
    Finn Ellebaek Nielsen

    It also seems that links don't work. The mouse cursor changes to a hand when hovering over links and the links are shown in blue and underlined but nothing happens when clicking on them.
    Example:
    <!--
    <html>
    <head><link rel="stylesheet" type="text/css" href="file://c:/temp/core.css"/></head><body>
    <p>First heading</p>
    <p>Second heading</p>
    <H1 id="x1">This is Level-1 Heading</H1>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    a<br>
    <H2 id="x2">This is a Level-2 Heading</H2>
    <p>This is regular paragraph text.</p>
    <img src="file://c:/temp/fig01.png"><br>
    <img src="file://c:/temp/fig01.gif"><br>
    <img src="file://c:/temp/fig01.jpg"><br>
    <p>First heading</p>
    <p>Second heading</p>
    <p>Other document</p>
    </body>
    </html>
    -->

  • In fire fox and google chrome CSS and images are not loading

    I am facing problem with jrun, In IE-8 application is working fine, but in FireFox and Google chrome CSS and Images are not loading.
    in fire fox and google chrome requests are Aborted.
    thanks
    Ashok Gadiparthi.

    Check if Style Resource Readers SharePoint group has permissions on the site, permissions to the style library and make sure that this library provides Style Resource Readers with restricted read.
    If you don't see Style resource readers on the site, go to that library and set that permission.  you could also just load your installation media to a folder, and execute on setup.exe, select repair option.  This second option of the installation
    media is the cannon vs. flyswatter approach though, but it will work
    Stacy Anothersharepointblog.blogspot.com

  • Exporting "CSS and images (.htm.)" from Fireworks CS4?

    Is this an effective process for developing CSS based layouts? Are there any proven tricks to improve the quality of the resulting structure?

    It's a starting point, but it does not exempt you from understanding 
    XHTML and CSS. Currently there are some limitations to what the script 
    will export: it ignores additional states, javascript behaviors and 
    won't export more than 1 page at a time. Keep in mind this is just the 
    "first kick" and we'll no doubt see this feature embellished.
    I recommend that you download and read about the updated CSS and 
    Images export script, modified by Matt Stow. You can find the new 
    script and his article here:
    http://www.adobe.com/devnet/fireworks/articles/standards_compliant_design.html
    The article also provides some tips on how to best plan your designs 
    if you plan to use the script.
    HTH
    Jim Babbage
    NewMedia Services
    http://www.newmediaservices.ca
    Community MX Partner -
    http://www.communitymx.com/author.cfm?cid=1036
    Adobe Community Expert
    http://www.adobe.com/communities/experts/members/206.html
    Author - Lynda.com
    http://movielibrary.lynda.com/authors/author/?aid=188
    Author: Peachpit Press
    http://www.peachpit.com/store/product.aspx?isbn=0321562879

  • PSE7 Are People and other Tags Stored in Image File

    Does anyone know if the People and other tags are stored by PSE7 in the image file? Since there are well defined "Keyword" data fields in both the IPTC and XMP metadata standards, I would think PSE would store them in the image file in addition to whatever it puts in the Catalog. However, none of my other programs that read image metadata (PhotoME, PIE, iExif) are finding anything. Other programs such as Windows Photo Gallery put the keywords in the image file.
    I don't have a lot of experience with PSE so perhaps I am just missing something obvious.

    PSE stores the "truth" about keyword tags, dates, captions, notes, star ratings, stacks, version sets, albums, and projects in its "catalog" file.  If you change a date, caption, note, or star rating, PSE also writes it back into the file's metadata (the "EXIF").  But for keyword tags, you need to give the command File > Write Keyword Tag to get it written back.

  • Help on Fireworks Css and Images Export mess

    Hi,
    After slicing up my design and export using 'css and images' the slices are all in the wrong places.
    Further more the formatting on the main text section has disappeared and the button from the main section is missing.
    Rather unpredictable!
    Hopefully there is a simple fix to all this
    Thanks

    If you go to Pages and make a duplicate (from this page export just the Booking button as an image
    Back to page 1. add slices for top navigation
    add a slice over text area
    In PI change Slice Type to HTML
    Export as CSS and images
    In DW place the button and add link.
    Paste text into content area (now HTML instead of an image)
    You'll need to tweak styles to fix margins
    BUT - this is NOT the way to make a website. It is all images and search engines can't read an image and it takes too long to load. It's not search engine friendly at all. If it's comping purposes the ignore the rant :-)

  • Css and images are not loading in SharePoint website

    Scenario:-
    System Configuration- Windows server 2008 R2, SharePoint Designer 2010, SP server 2010 all are in Local Machine.
    1. I had reset the Windows server 2008 R2 password and opened SharePoint Designer 2010.
    2. Opened previous working site and found error- services unavailable- HTTP Error 503. The service is unavailable
    3. For this issue, I reset  (as I reset for windows server) the Identity password in App pool for "SharePoint Central Administration v4" application.
    4. The error "Service Unavailable" got vanished.
    But encountered new problem - .css and images are not loading. 
    5. I re run "Product Configuration wizard" with below steps:-
    A) Do not disconnect from this server.
    B) No, this machine will continue to host the website
     Still Problem persisting.
    What tried:-
    1. Resetting IIS Server.
    2. Restarted SharePoint Admin Services from "Service window".
    3. Recycled App pool.
    Just do let me know for further information.
    I have Checked so may forum and sites but no solution :(
    Looking for excellent resolution :)

    Check if Style Resource Readers SharePoint group has permissions on the site, permissions to the style library and make sure that this library provides Style Resource Readers with restricted read.
    If you don't see Style resource readers on the site, go to that library and set that permission.  you could also just load your installation media to a folder, and execute on setup.exe, select repair option.  This second option of the installation
    media is the cannon vs. flyswatter approach though, but it will work
    Stacy Anothersharepointblog.blogspot.com

  • Filting html tags, css, and javascript with regex

    hi everyone,
    im writing a small application where a user types in a url, and the text of the webpage is displayed in a text area.
    ive got it to work, however it takes some time, and also alot of content i dont want is displayed - tags, scripts and sometimes css.
    initally i filtered out the html tags with a regular expression, but i still get alot of unwanted content.
    im not a confident java programmer, and the idea of parsing html, css and javascript is the scariest idea ever to me, so my next idea is to keep only everything between the <body> tags - everything above and below it is deleted - hopefully that should leave me only with the visible content on the site.
    ive messed around with regular expressions but i cant get it to work, can anyone help out?
    thanks alot,
    Torre

    Darryl.Burke wrote:
    I tried out the regexes I posted on the source of a forum page, which is not valid html (contains two each opening and closing body tags). With a bit of trial and error I was able to remove everything upto the first, and not the second, opening tag by using a reluctant qualifier, ^.*?, but couldn't for the life of me achieve removal of only the last closing tag, leaving the other, invalid one intact. How would you do that?Regexes always try to match the first occurrence of whatever they're looking for (the sentinel), and there's no way to change that behavior (but it would be handy if you could). What you have to do instead is make sure the rest of the regex can't match the sentinel. For that you need lookahead, and the simplest way to use it is to scan the rest of the text looking for the sentinel and, if it doesn't find one, go ahead and gobble up the remaining text: "(?is)</body>(?!.*</body).*$" However, if there are many occurrences of the sentinel, you could take a serious performance hit. Here's a much more efficient way: "(?is)</body>(?:[^<]++|<(?!/body>))*+$" After matching the sentinel, this regex gobbles up anything that's not the first character of the sentinel, or the first character as long as it isn't followed by the remaining characters of the sentinel. The advantages of this regex are that it never has to backtrack, and the lookahead is only applied when it's necessary, where the first regex applies it every time.

  • Is it possible to add keywords, title tags, and alt tags to lightbox images and/or triggers?

    I am building a mobile site that is pretty heavily dependant on lighbox displays for the scroll capability. The issue I have run into is that I need to be able to add alt and title tags to the images in the lightbox (slideshow) to maintain the seo of my site. I have only designed a few of the pages thus far, and the issue I am running across is that once an image is considered a "trigger" by muse I can no longer add the seo elements in the same way I can when it's an image.
    A few ways around this I found are:
    1) export the site to Dreamweaver and then I can go in to the code and add the seo for the images in the lighbox on the backend.
    2) I can build the site image by image and then over lay each trigger for the lighbox slideshow.
    The issue with #1 is that once I export my site to dreamweaver it is then no longer editable in muse. I see this presenting a huge problem as I move forward with new iterations of my website. Any changes made in dreamweaver are not transferable to muse and thus creating two seperate sites. That means I would need to recreate any and all seo built in every time I update the site. This is not really an option and is not efficien at all. Is there a way to jump back and forth between these two products that I am unaware of? That would be most helpful.
    The issue with #2: I have built each project page on the site as mostly large background images with triggers over laid. I did this to try and lower the overall gerth of the site, but it is seeming I am not going to be able to get around this and maintain the seo i am looking for.
    Has any one run into this problem and solved it?
    Here is the site thus far:
    ghatest.businesscatalyst.com
    Thank you for your feedback!

    Placed images and slideshow images support tooltips (the "title" attribute) and alt text via the "Edit Image Properties..." content menu.
    Strictly speaking, background images (fill images) in HTML do not support these tags. That said, in some contexts it may make sense for Muse to enable setting these attributes on an arbitrary object (which may, or may not, have a fill image).

  • Css and images not working on 3rd party server

    Hello,
    I have read the previous posts on this subject, but found no resolution.
    I can confirm that the CSS and images were uploaded to Media Temple.
    The permissions are set to "read"
    I didn't change any of the file structures. uploaded as it was output by Muse.
    Any new thoughts?
    Thanks a bunch.
    -keith.

    I'm back.
    Okay Zak thanks...
    what browser?
    on Safari the html shows up but no styling and the image frames show up but empty.
    On fox same thing except no image boxes even.
    I have a support request in with MT so I will see what they have to say.
    Thanks a bunch and I promise to update any info I gather from them.
    -Keith.

Maybe you are looking for

  • Problem with display an image on JFrame in Java 6

    I'm trying to display an image on JFrame in this way: 1.) I'm creating a variable in the class:     private Image imgSpeaker = null;2.) I'm overiting the paint method: public void paint(Graphics g) {         super.paint(g);            g.drawImage(img

  • The itunes library file cannot be saved. you do not have eno

    I get this message what does it mean? "the itunes library file cannot be saved. you do not have enough access privileges for this operation"

  • Colorize a black and white photo

    Hello all! I'm new to Mac and Aperature and sure would appreciate a little help. I'm wondering if I can add color to a black and white photo. For example, a picture of my daughter, and I'd like to add color to the flowers in her hair. Thank you! dwat

  • Programming for the mac without using xcode

    Hi I'm very new to programming for Apple platform. I wanted to clear some doubts which is currently standing as a barrier in getting started. Can I use a text editor (preferably TextMate), Interface Builder, and the Terminal (without using xcode to w

  • Error openning a .pdf document

    When I try to open a .pdf document, it opens in a blank window and i get a window which and says insufficient data for an image. Can u please help me? I got more than two months at this point. My OS is Windows 7 and my Adobe Reader Version is 9. The