DIV and p (Gaps between them).

I'm sure that I'm missing something really obvious here:
I've attached the CSS that I'm using (external).
Using the WYSIWYG view, it's really hard to get it to do what
I want; I seem to have to ensure that I have a space below where I
want to put anything, check that the format is set to "none", then
I can set "start" - & enter my information. Then I can click in
the space, and do the same before entering the contents for "main".
However, if Dreamweaver helpfully adds some paragraph tags,
as it often does, it gives me a gap between "Start" & "main".
I've also found that if I don't have a blank line after the
bit that I'm trying to put in, then I end up with the insertion
point being unable to get "past" the final div tag, so I end up
with a div in a div, which isn't what I want.
I can use the code view to tweak to what I want, but I can't
help feeling that I'm missing something; either that the CSS is
wrong - so I should be able to have two paragraphs in adjoining div
touching each other, or something!
I'd found
http://archivist.incutio.com/viewlist/css-discuss/39227
- which suggested using div > p - but even though I tried with a
line-height of as low as 0.8 it didn't work, so I've obviously got
the wrong end of the stick (wrong stick most likely!)
Emma

Emma,
> I've worked it out! I don't *need* the div tags.
That's right.
> As long as I use p class = and then enter the text, I
can
> then get two different paragraphs to join & look
like a
> single body!
As a matter of fact, you don't even need class="something".
There are
various kinds of CSS selectors. One of them is known as a
class, which
requires the class="" attribute in your HTML and a dot in
front of the class
name in your CSS.
e.g.
.discussMain = { properties here }
Another kind is known as an element selector. That's where
you simply
use the name of an HTML element, such as p, as your selector.
You don't
need a dot, then, in your CSS for that rule.
e.g.
p { properties here }
Keep in mind, if you use an element selector, *all* elements
of that
type will be affected. If you only wanted to affect a dozen
<p> tags, but
not all, you could either give each of them a class attribute
and use a
class selector, *or* you could wrap all those <p> tags
in another tag --
say, a <div> -- then apply your class to the
<div>. This is partly what the
"cascading" means in Cascading Style Sheets.
<div class="something">
<p>paragraph</p>
<p>paragraph</p>
<p>paragraph</p>
</div>
.something p {
properties here
In the above, the HTML shows a way to corral together a
handful of <p>
tags. The CSS references all <p> tags that exist inside
any element whose
class attribute equals "something".
There are other ways to specify which parts of the HTML
should be
affected. See this Wikipedia entry for a good overview.
http://en.wikipedia.org/wiki/Cascading_Style_Sheets
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Several environment and transfering configuration between them

    I am trying to get some information about how could we have more than on On Demand environment... like Development / Production and transferring configuration between them... I undestand that the data I could export/import... but how to deal with the configuration ? A customer has available more than one environment ?
    Txs. for any help.
    Antonio

    Hi, As of now there is no import / export facility available for configuration related changes. These changes has to be replicated manually only
    -- Venky CRMIT

  • What are BI reports and ABAP reports and the difference between them ?

    What are BI reports and ABAP reports and the difference between them? please explain me in detail and let me know if you have some documentation about it.
    Thank you in advance!
    Steve Jobs

    Do we have to write custom code for the ABAP reports? Do you have any documentation about it?
    Thank you.
    Steve Jobs

  • [OT] Geographical points and the distance between them

    I need to solve problems on the topic of addresses and the distance between them. I understand that I first need to convert an address into a pair of longitude and latitude. After my reading so far, I can use a GIS DB to achieve this goal. That is a lot of work since the issue is only one aspect of the application development. Does anyone know any other approaches?
    Thanks.

    [http://lmgtfy.com/?q=java%2Bcode%2Bdistance%2Bbetween%2Blatitude%2Blongitude%2Bpoints]

  • Placing 2 images side by side in a div and not hving a gap between them

    I'm building my first website http://www.ClayBernard.com and having a problem in the div "#logoAndBanner" - when I place 2 images side by side I get a gap so in the browser they look disjointed. I want to make them seamless.
    Any ideas would be great
    Thanks

    Hi,
    what's about this:
    <div id="logoAndBanner"><a href="index.html"><img src="images/BANNERS/IndexBanner_rev00.png" width="1000" height="80" border="0" /></a><img src="images/BANNERS/Banner_Contact_rev00.png" width="100" height="80" border="0" /></div>
    Hans-G.

  • Carbon & Cocoa- and the difference between them

    As a year old Mac user (meaning, I've been using the Mac for a year, I personally am not a year old) one thing has always had me a bit miffed
    What's the difference between Cocoa and Carbon?
    My understanding is that is has something to do with the appearance of an app- and how it was created.
    Just a little curious, that's all!
    Cheers

    This link may be helpful.
    http://www.macworld.com/news/2001/01/04/macosx/index.php

  • JPA - How-to have 2 classes, 2 ejb-jar, and 1-N between them

    I have two classes - Person and ProbateCase. A ProbateCase can have one or more people working on it.
    However, Case and Person are in two different EJB's, Doing this the obvious way leads to: Use of @OneToMany or @ManyToMany targeting an unmapped class: on the array.
    Here's how I have them mapped:
    @Entity
    public class ProbateCase extends Organization {
         @OneToMany
         private List<Person> lawyers = new ArrayList<Person>();And
    @Entity
    public class Person extends Party The persistence.xml files work individually just fine, as do the mappings. It's only when I cross them like this that I get the exception.
    Any ideas on how to fix this?
    Edited by: Jim.Barrows on Feb 23, 2008 1:16 PM

    The jar utility allows you to extract files as well as put them into a jar. This is in the java docs.
    You might have to hand modify the manifest file if it was hand modified in the first place. All you should have to do is copy the text from one file to another. The manifest will have the same name so you will have to extract to different dirs so it isn't overwritten.
    Steps:
    -Create dir1 and dir2
    -Extract jar1 into dir1, Extract jar2 into dir2.
    -Manually examine manifests and combine if needed.
    -Copy files from one dir to another.
    -Use jar tool to create new jar.

  • How to call one Main MXML from another main MXML file and pass values between them?

    Hi,
    I am trying to populate a datagrid from a XML file ,which I have done successful
    I am able to get data out of the datagrid on clicking on any element
    Now when I click on any element in datagrid I want call a new mxml file which is also have Aplication tag and I want to pass that value of clicked element to it
    This is the code I am using for getting data from XML into data grid in 1st MXML file and the XML file used.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"  initialize="exp.send()">
         <fx:Declarations>
             <s:HTTPService id="exp" url="expLab1.xml" result="
    resultHandlerQuestionBar(event)"/>
         </fx:Declarations>
         <s:Panel x="74" y="218" width="485" height="333" title="Work On Configured Experiments" id="p1" fontSize="14" chromeColor="#9BFDAB" dropShadowVisible="false" contentBackgroundColor="#E4EEE6" contentBackgroundAlpha="1.0" backgroundColor="#67B6AC" textAlign="left">
              <mx:DataGrid  x="35" y="33" width="338" height="88" dataProvider="{experimentdetails}" chromeColor="#FCFCFC" contentBackgroundColor="#FFFFFF" selectionColor="#FAFBFD" rollOverColor="#FCFDFF" focusColor="#FCFDFD" itemClick="onItemClick( event );">
                  <mx:columns>
                     <mx:DataGridColumn id="j1" dataField="experimentName" headerText="" itemRenderer="jaya">
                     </mx:DataGridColumn>
                  </mx:columns>
             </mx:DataGrid>
         </s:Panel>
         <fx:Script>
             <![CDATA[
                 import mx.collections.ArrayCollection;
                 import mx.controls.Alert;
                  import mx.events.FlexEvent;
                 import mx.events.ListEvent;
                 import mx.rpc.events.ResultEvent;
                 [Bindable]
                 private var workbenchname:ArrayCollection;
                  //private var a:String;
                 private function resultHandlerQuestionBar(event:ResultEvent):void
                    experimentdetails=event.result.List.experimentList.experiment;  
                 [Bindable]
                 private var experimentdetails:ArrayCollection;
                  private var alert:Alert;
    private var data:String;
                 private function onItemClick( e:ListEvent ):void {
       data= experimentdetails.getItemAt(e.rowIndex).experimentName.toString();
                    alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
             ]]>
         </fx:Script>
    </s:Application>
    and the xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <List>
       <workbench>Basic Movement</workbench>
         <experimentList>
           <experiment>
             <experimentName>Distance with varying time</experimentName>
             <Rating>2</Rating>
             <expNO>1</expNO>
           </experiment>
           <experiment>
             <experimentName>Distance with Constant time</experimentName>
             <Rating>1</Rating>
             <expNO>2</expNO>
           </experiment>
           <experiment>
             <experimentName>Time taken while decelerating</experimentName>
             <Rating>3</Rating>
             <expNO>3</expNO>
           </experiment>
          </experimentList> 
    </List>
    Now the code for 2nd MXML is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
          <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:Label text="lable1" >
          </s:Label>
    </s:Application>

    Check out ExternalInterface class:
    http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_2.html
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • How comes when i load my music into my ipad some albums split up.so end up with 2 albums and songs split between them  any help

    how come some of my albums split when loaded onto my ipad.any help

    Also check to make sure the Album Artist is the same for all tracks (in itunes on teh computer). Aslo check the Music app to see if you are sorting by Album Artist (its under Other on the menu bar at the bottom of the screen).

  • Can I disable the feature which gives an image in an image map a 1 pixel blue border, thus displacing all the image links on the image map by 1 pixel and revealing gaps between all the images making up the image map?

    i. e. can I remove the blue outline glow in focus in the browser?

    i. e. can I remove the blue outline glow in focus in the browser?

  • When I open firefox, there is a HUGE gap between the tabs and the menu - it's taking up room on my screen.

    I wish I could add a picture. But the menu bar
    is here (for example)
    the back buttons (which don't work) are here
    and the tabs
    are
    way
    down here
    There is a HUGE gap between them and it's taking up real estate on my screen! How do I fix this.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    See:
    * [[Troubleshooting extensions and themes]]

  • How to control gaps between JPanel

    I have some problem controlling the gaps in my application.
    A main JPanel. Inside has a JScrollPane, which inside has one or more JPanel. The internal JPanel uses GroupLayout to lay the buttons and labels.
    The top JPanel has a setSize(900,900).
    Everything comes out fine but the gap between the internal JPanels are a bit problematic. If the JPanels are only a few, the gaps between them are huge and unsightly.
    Where and how do I control the gaps, or have a fix gap size?
    I tried but can't seem to get it.
    Thanks in advance.
    Here's a part of the code
    JPanel p = new JPanel();
    p.setLayout(new GridLayout(**number of internal JPanel**,0));
    for(*looping for internal JPanel*)
    *creating Buttons and Labels and stuff*
                   JPanel ip = new JPanel();
                   // GroupLayout
                   GroupLayout glQ = new GroupLayout(ip);
                   glQ.setAutoCreateGaps(true);
                   glQ.setAutoCreateContainerGaps(true);
                   GroupLayout.SequentialGroup hGroupQ = glQ.createSequentialGroup();
                   GroupLayout.SequentialGroup vGroupQ = glQ.createSequentialGroup();
                   hGroupQ.addGroup(glQ.createParallelGroup().addComponent(Label1).addComponent(Label2));
                   hGroupQ.addGroup(glQ.createParallelGroup().addComponent(TextField1).addComponent(TextField2));
                   glQ.setHorizontalGroup(hGroupQ);
                   vGroupQ.addGroup(glQ.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(Label1).addComponent(TextField1));
                   vGroupQ.addGroup(glQ.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(Label2).addComponent(TextField2));
                   glQ.setVerticalGroup(vGroupQ);
                   ip.setLayout(glQ);
                   p.add(qnsp);
    JScrollPane sp = new JScrollPane(p);
    Edited by: KsH--- on Apr 23, 2008 11:18 PM
    Edited by: KsH--- on Apr 23, 2008 11:19 PM

    I think the issue lies with the gridlayout.
    As it will make full use of the space. If there's only a few JPanels, it will make full use of it and result in huge gaps in between JPanels.
    e.g. JPanel with gridlayout with 2 buttons. The 2 buttons fill up the whole JPanel ending up with 2 huge buttons.

  • Remove gaps between tables in dreamweaver CC

    I'm new to Dreamweaver so please be patient with me. I have created 2 stacked tables and for some reason there is a slight gap between them even though padding and spacing is set at 0. Can anyone let me know how to remove this gap.
    Thanks in advance

    I had never noticed it in the past until I started using the html5 doctype, hmm...
    One sec...
    I just tested a simple 2 column 2 row default table and tossed in an image with text and an image without text into two separate rows. The padding is not there in HTML4 Trans or XHTML Trans (which is what I used in the past most often). It only shows up on the image that is added with text for those two doctypes. When I convert it to html5, it shows up for both, here test this code and see if I'm crazy (preview the below, then change the doctype to html5 and preview again, the descender padding on the bottom image is not present in XHTML or html4 and pops up in html5)...
    <!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-us" lang="en-us">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style>
    table {
        border:none;
        margin:0px;
        padding:0px;
        border-collapse:collapse;
    </style>
    </head>
    <body>
    <table width="200" border="1">
      <tbody>
        <tr>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td>hi<img src="images/dots-anim.gif" width="62" height="32" alt="" />there</td>
        </tr>
        <tr>
          <td><img src="images/dots-anim.gif" width="62" height="32" alt="" /></td>
          <td> </td>
        </tr>
      </tbody>
    </table>
    </body>
    </html>

  • Moving clips and closing gap across all tracks - premiere4

    HI, I have multiple clips spread across 3 tracks. There are gaps between clips that I want to make shorter - but still leaving black or empty sections. I cannot find a way to move a clip to the left so that all clips on all lanes to the right (ie afterwards) move along with it whilst keeping their relative postions vertically.
    I can see how to do this by selecting everything to the right but this would be incredibly tedious. I want to be able to, say, grab a clip on track 3 at 45secs, drag it to 43 secs and all the clips on tracks 1 and 2 and 3 etc also move 2 secs to the left.
    Any hints?
    thanks, Greg

    I have run some tests and still not getting the behaviour I want.
    I started a new project and inserted three clips - one clip to each of video tracks 1, 2 and 3. I ctrl+drag the video 3 clip to the left and the other two clips (tracks 1 and 2) move but do not keep their positions relative to the track 3 clip. Instead they advance just by the length of the moved clip. This means that the length of any gaps between clips is not preserved.
    The outcome can be that clips that were not overlapping are now overlapping, or clips that had a small gap between them now have a large gap.
    I would really like to be able to keep the relative position of the clips when I move a single clip along the timeline.
    thanks, Greg

  • I can't get soundcheck and no gaps to work

    I'm burning CDs from a mix of songs I import from my CDs onto a
    playlist.In Itunes preferences I have sound check and no gaps between songs
    checked off.When I play the CD on my CD player the gaps are there,some
    longer than others and some songs are much louder than others.I need these
    options to work because I'm a pro percussionist and I use these discs to
    play along to at parties and events.Any help would be appreciated.

    Settings>General>Accessibiltiy>LED Flash on alerts>On. Note, it only works when the screen is locked.

Maybe you are looking for