Noob question about DIV tags

Learning DW and CSS so patience is in order .
I've being reading numerous posts here and on the web about avoiding tables for laying out web pages. I can see the advantages in terms of cleaner codes and easiness of updating and changing sites at a later time. So I started learning about DIV tags (although tables is very easy for me) and have practice a few times with fairly good results, love the absolute positioning with it. Having said that, for the love of me, can't find a way of centering horizontally a page designed with DIV tags (due to ignorance), for example, 1 column/three rows page, after defining styles, size and colors I enclosed everything in another DIV tag, wrapper I think is called, but have not found a way of centering it on the page, text-aligment on the DIV tag only centers the text not the DIV itself, how to go about this? Help is appreciated.

love the absolute positioning with it.
Get over it.  It's a trojan horse.  Absolute positioning is not a general layout method.
To center ANY block (non-absolutely positioned) element, use CSS to give it a width and left/right margins of 'auto'.  For example -
<div id="foo">...</div>
That div will be centered with this CSS -
#foo { width:300px; margin:0 auto; }
I think you are on the wrong path already, though.  Stick with tables (which you say are very easy for you) UNTIL you a) understand CSS well enough to understand what absolute positioning is and why I say it's bad, and b) understand how to use float, margin, and padding to place things on the page.  Then you are ready to move away from tables.

Similar Messages

  • Quick question about div tags

    How do you make a div tag only as wide as the content that is
    inside of it, rather than the width of the cell that surrounds
    it?

    <div style="width:200px; float:left">
    Would give you a div 200px wide and floated to the left. You
    can similarly
    float another div to the right of this div etc. When you are
    done with a row
    of divs, you would want to clear the float so that the next
    set of divs
    starts with the extreme left as the reference point. To clear
    a float you
    would use style="clear:both;" or style="clear:left;" etc.
    Please do some
    reading on all this before you start experimenting else
    you'll run into a
    multitude of issues.
    You cannot lose until you give up !!!
    "AngryCloud" <[email protected]> wrote in
    message
    news:f133f2$jk4$[email protected]..
    > How do you make a div tag only as wide as the content
    that is inside of
    > it, rather than the width of the cell that surrounds it?

  • 2 noob questions about speaker settin

    . What if I don't sync the Creative speaker settings with windows control panel speaker settings?
    2. What if I the speaker settings(both Creative and windows) don't match my speaker type?For example, I have only headphone connected to my Audigy 2 ZS but I set the speaker setting to 5. or whatever else. Will this improve my sound quality in games such as Battlefield 2? Am I?supposed to get the virtual 5. surround sound effect? Because I've heard that cmss upmixes stereo sound in?games to virtual 5. or 7. surround sound for headphones.
    Thanks.
    Message Edited by jermin on 06-24-2008 02:09 PM

    Re: 2 noob questions about speaker settings?slightlys I have a slightly different set up.
    I have 5. speakers that I use for movies and some games. For BF242 I use headphones because they give you an advantage as you can hear people creeping up behind. The virtual surround sound is really good with my XFi xtremeMusic.
    First I don't think it matters what you select under Windows Control Panel as the Creative Console Launcher updates speaker settings in Windows. Second if you want virtual 3d with CMSS on headphones just select headphones and enable CMSS3D. Then click the 'headphone' button on the CMSS3D tab and you can test the sound - a helicopter pans around in 360 degrees.
    Then in games set the software to output 5. - AFAIK. Battlefield seems to do this automatically but I can't speak for other games. I'm assuming the Audigy has the same CMSS3D tech that the XFi has.

  • Question about Id3-tags and song managem

    Hello, I am getting ready to buy a Zen Touch 20GB in a couple of weeks and I have a few questions about the management software.
    (Correct me if I am wrong about something)
    ) Are songs organized into groups by Genre instead of just folders like on the Ipod?
    2) Are Id3-tags used instead of filename for identification?
    3) What parts of the tag are needed besides title and artist?
    4) Which version of tags does the Zen Touch recognize: Version or Version 2?
    5) If I edit my tags using an external program such as Id3-TagIT, will the tags carry over to the Creative software and to the player?
    Thanks a lot for your help. I want to make sure I have my music collection in order before I get my Zen Touch.

    euph_jay wrote:Ok, so lets say I have all my music in folders right now seperated into different categories on my hard dri've. Some folders denote the artist, some the album, and some a genre. Example: Folder: Chicago Contents: Chicago .mp3 files Folder: Techno Contents: various Techno artist's songs What is the best way of organizing my folder system, so that the transition will be easy to the player?
    Folders are pretty much irrelevant. What the software will do is look at the *tags* in the files and then use these to build the player's library.
    Will imbedded folders work on the player? (like Techno->Crystal Method->Cystal Method .mp3's)
    Again the player has no concept of folders, although if you set Techno as a Genre tag you will be able to view via this in the Music Library.
    Or, am I misunderstanding how music is stored into the mp3 player. Instead of storing music in a "folder like" system (like the Chicago folder or Techno folder), does it store all the songs individually on the device? Then you have to sort it by artist, album, or genre?
    Using your example, in the Music Library you have essentially three categories: Album, Artist, and Genre. So under Album you would see "Vegas" (the Crystal Method's album), under Artist you would see "The Crystal Method", and under Genre you would see "Techno" (and then either the album or artist under this... I forget which it is offhand).
    Make sense?

  • Noob question about launching apps

    Greetings all,
    Just made the switch to a Powerbook with OS X Tiger, and have a question about launching applications; specifically how to do so without using the mouse. On my Linux boxes (one at home, one at work), I do most of my work from the keyboard, without resorting to the mouse, even in Gnome or KDE.
    In Tiger, I can select applications on the desktop, but haven't been able to figure out how to launch them without "clicking"... I've Googled and searched these forums, but no luck so far. Under Linux, it's the Enter key. I assume in Tiger it's some key combination...
    I know there's probably a simple answer, but I've not been able to happen upon the appropriate key combo it at random, so I thought I'd ask the experts.
    Be gentle, I've only had my PB a week!

    To help you in your quest to keep your hands on the keyboard you should check out apps like LaunchBar and Quick Silver. Your hands will never (well... rarely) leave the keyboard again.

  • Question about id3 tags

    i had all of the fields of all my songs just how i liked them. i thought itunes had written everything i had edited into the id3 tags of all the songs. apparently, it didn't work.
    i am using another software called serato. i took the mp3's whose tags i edited in itunes and imported them into serato. i know this program is able to read all versions of tags, so i found a suggestion someone made to strip the id3 tags. this process called for selecting all the songs, converting the id3 tags to "none", then changing them back to a certain version (v2.3 or v2.4).
    after doing this, i take a look at my itunes library and about 80% of all my songs have their tags messed up. either the genre is back to what it was before i changed it a while ago, or (more annoyingly) the song titles are all truncated to a certain length.
    1. is there any way to undo this? or am i going to have to manually go back and re-edit all the fields?
    2. is there a better way of ensuring itunes is correctly changing the id3 tag fields? for example. if i edit the id3 tags on itunes on one profile on my mac, then take the same mp3 file and import it into itunes on another profile, the id3 tags seem to not have been changed at all.
    help anyone? this whole thing has got me really frustrated. thanks in advance.

    In Serato setup, check box Read iTunes Library. However this doesn't solve the problem, only creates yet another location for cleaning up....
    Having somewhat same issue: Converted all id3 from iTunes succesfully, but couldn't import files correct on other macbook in iTunes (same version)?!?!? Doesn't read id3...

  • Simple question about custom tags really easy!!

    I am trying to make my own custom tags, so far i have created simple one that have i use for heading or to set the page layout for a jsp page, My question is I want to make a custom tag with a body , with a start and end tag can anybody give a simple example of a custom tag which has a body.
    I do not mean write me a tag i mean what could a tag with a body be used for? Can you give me some example of what a tag of this kind could do?

    Thanks having read that and some other pages i have another question:
    would it be possible to put the following code into a custom tag so that i can pass in a list and have it output it to a table?
    <TABLE >
    <% 
    out.println("<TABLE >\n" +
                    "<TR BGCOLOR=\"#FFDDAA\">\n" +
                    "  <TH>ID Number\n" +
                    "  <TH>Artist\n"
    Iterator it = pricePassed.getpricePassed().iterator();
    while( it.hasNext() ){
       MySite.VideoBean vids = (MySite.VideoBean) it.next();
       out.println( "<TR>\n" +
                   "<TD><Center><B>" + vids.getRecId() + "</TD>" +
                    "<TD><Center><B>" + vids.getArtist() + "</TD>"
    </TD></TR>\n" );
    %></TABLE>At the moment i use the above in a jsp to put data into a table, would it be a massive task to undertake to put into a custom tag?

  • Noob question about trying to duplicate rows in a table

    Simplification of problem is I've got a table with user_id, name, year where user_id is pk. I would like to take all the rows that match year=2008 and insert them into the same table, but start the user_id at a certain number and set year=2009.
    I know this doesn't work, but it's what I want to do in noob-code:
    INSERT into TABLE (
    user_id, name, year
    ) VALUES (
    SELECT user_id_seq.nextval after starting at 3500, name, 2009 from same table doing insert to where year = 2008
    I've contemplated using a temporary table, I've also seen mention of cursors, but don't quite understand what they are. I'm really, really new to Oracle and SQL in general, but am familiar with programming and shell scripts. I know more in depth searching might land me what I want, but I think my search syntax would be just as weak as my knowledge of the material. I'm just thinking this is something so basic and easy that my searches aren't using the right terms to catch a hit.

    Hi,
    Welcome to the forum!
    You can INSERT all the results of a query by substituting the query where you otherwise would have "VALUES (list)".
    For example:
    INSERT into TABLE_X
           (user_id,              name,  year)
    SELECT  user_id_seq.NEXTVAL,  name,  2009
    FROM    table_x
    WHERE   year = 2008;This assumes that the sequence user_id_seq exists and is ready to issue the correct value. (It's unclear if that's part of the problem.)
    Temporary tables and cursors (which are a way of getting query results in PL/SQL) are only useful for inserting in rare situations, where you have to do very odd, convoluted things. Think (at least) twice about how to do what you need to in SQL, and if you can't think of a way, then ask.
    Yes, basic things often are hard to search for, especially if you don't know the right terms.
    There are several good teach-yourself SQL books that explain this kind of thing. Getting one would be a good investment.
    [All the Oracle manuals|http://www.oracle.com/pls/db111/portal.all_books] are on line. There's an example of this in the SQL Reference manual, under THE INSERT command.
    Edited by: Frank Kulash on Nov 26, 2008 12:59 PM
    Clarified usefulness of cursors. They have a lot of good, common functions, but helping with INSERTs is not one of them.

  • Noob question about Airport

    I have one of the early G5 PowerMacs (single 1.6 gHz). It currently doesn't have an Airport card, but I'd like to install one or an equivalent. Here's my two questions:
    1.) Are all G5s compatible with Airport Extreme cards?
    2.) Are there good third party alternatives out there?
    I wish Apple would be clearer about what systems are "Airport Extreme Ready".
    Thanks in advance!

    The Airport "Extreme" card for your G5 is here
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wo/1.RSLID?mco=3 93BD37&nplm=M8881LL%2FA
    An alternative here but no cheaper
    http://www.macwireless.com/html/products/11g11bcards/11gPCI.php

  • Noob question about HDR images

    hi everybody! i am reading this book about photoshop hoping to understand a lot more than i already know about pixels and colors and image dinamics and such..i got to the chapter about HDR images and here's what i dont get. as i understand, given a HDR image it has 32 bit depth meaning its file contains much more information about contrast and brightness than any existing monitor can output, so when u open it in photoshop u will never see its true quality. my question is( and i admit it may seem pointless to some, but i am committed to understand the cause and purpose), when converting it to 8 or 16 bit depth this window pops up asking me to tweak gamma, exposure, shadows and highlights, etc., but why is this linked to the conversion process? why not simply convert it, maintain the same appearance as before and then if needed manually adjust using all the image controls from the photoshop menus? i have CS6, if that matters.

    I don't know if this will help, but I've heard about HDR monitors (still very expensive), which supposedly very accurately display the HDR values. If you hang one on the wall in your house, people might think it's a window, since it is literally a source of light, in the same way a window to the outside world is.
    Possibly the most surprising use of HDR imagery is in 3D apps where global illumination models are used. HDR imagery literally is the only source of light for these images. There are no lights in the scene, only HDR imagery. This is because of the great dynamic range of HDR.
    A more practical (to me) use of HDR is when resurrecting antique images. If you scan multiple exposures from old prints, then create HDR, sculpting values in 16-bit becomes a very powerful tool, only due to the HDR value range.
    Photoshop, although it can edit very well in 16-bit, can only show 8-bit representations of HDR imagery, since almost all monitors are 8-bits per channel. Because of the monitors, we can only see a small part of what is actually present in the HDR file.
    I've never done it, but I imagine that if we all had HDR monitors, we'd need to wear protective glasses (like you wear driving in your car when the sun is out) most of the time to do our work.  :+)

  • A noob question about precedence...

    Ok, here's the question.
    let's say:
    int a=0;
    a=a++;
    when a is evaluated, 0 is returned.
    isn's that expression like this?
    a=a=0;
    a=a+1;
    apparently I'm wrong.
    so if i forced a parentheses on it
    a=(a++);
    but again, a is evaluated as 0,
    I know how ++a would work, but i'm really curious about the suffix one.
    can any one explain to me?

    i mean how no matter what u do to
    a=a++
    i know in this case that a is evaluated first b4 it is added to 1,
    but it's gona add that 1 eventually right? so the evaluation of
    a in the en should be 1.
    Ah, I'm so confused, help

  • A question about keyword tags

    Is it possible in settings... or somewhere, to set it so that when you open (PrE9's) organizer instead of starting with keyword hierarchy list - it could open on keyword cloud view? I am not so keen on the hierrarchy method...
    Thanks.
    brush

    I did some experimenting in the Elements 9 Organizer.
    1-- yes, when you close the Organizer then it does always seem to come up next time with the Thumbnail grid AND the Tags panel on the right is set to Hierarchy view. Then you must click on the icon for Cloud view.
    2-- my conclusion is that if I click on the Cloud icon after starting the Organizer, then it was staying as Cloud in the Keyword Tags panel to the right of the Thumbnails for the duration that the Organizer is open.
    3-- Note that if you use Full Screen for viewing your photos, then for the "Quick Organize" panel that drags out from the left side of the screen near the bottom, the default for Keyword Tags is Cloud. This is a different method of working which you may or may not like: however since it does set Cloud I decided to mention it.
    FYI - to get to Full Screen you can use the pull down menu for the Display icon (that is next to the House icon on the top bar of the main Organizer screen). Choose the option "View, Edit, Organize in Full Screen".  FYI - I usually select the thumbnails of the photos which I want to Organize before I go in to Full Screen.

  • Question about adding tags to images and music

    Hi I have an artist page online and I have read that adding meta tags to your page does absolutely nothing to help search engines these days and then someone recommended adding tags to the images on my site using aperture (which I cant afford) so can anyone explain if I can do this in iphoto or photoshop? and also can I add tags to the mp3's available on my site to better perform in search engine searches? can i do this with itunes?
    Thanks in advance

    The search engines have to be lead to your music/photo page using an appropriate URL and having a text description with as many relevant "key" words as possible.
    Also, you need as many links to this page as possible from other sites as well as your own pages.
    When I enter one of my own song titles and name into Google, all the top listed links are sites that sell digital downloads and CDs. Have a look at the way these sites list your music to see the most effective way of doing it on your own website.
    Obviously, you first have to add your URL to Google, Yahoo etc and get them to verify your sitemap.

  • Question about Hidden Tags

    I have two forms Page1.jsp and Page2.jsp
    when i invoke page1.jsp i pass a customer id to it ... the actionclass gets it and displays Page 1.jsp
    now when i click on Page 1.jsp i need to pass the same id to Page 2.jsp's Action class
    How do i do it
    Is it possible using <html:hidden> tag
    Thanks
    ~K

    that's certainly 1 way to do it, sure.

  • Question about custom tags

    Hi All,
    Please tell me what is differnce between javabean and custom tags.
    thank you.

    Javabean is a data object (or a data holder) whose properties can be accessed using getters, setters - ex getName() and setName()
    JSP custom tags are merely Java classes that implement special interfaces (Tag interface). Once they are developed and deployed, their actions can be called from your HTML using XML syntax. Refer the article http://java.sun.com/developer/technicalArticles/xml/WebAppDev3/
    Cheers,
    Janesh

Maybe you are looking for

  • HOW TO Install and Make PJC in Jdeveloper 12c

    Hello experts,               I am new in Jdeveloper.I am using Oracle weblogic server10.3.5 with oracle forms and reports 11g at windows 7.My weblogic is configured to oracle forms and it work good. Now I want to install Jdeveloper 12c to make PJC co

  • BPM Process As a Web-Service Username and Password

    Hi all, We have exposed a Process as a Web-Service WSDL to another system . We use Username Token Profile to enter the username and password to connect to the Web-Service.. Now what we do is we have a role in our project and we create a dummy Web-Ser

  • VAT GL is not picking from J_1IT030K_V table for the business place in FB60

    Hi, We have defined the VAT GL based on business place, while posting FB60 (Vendor invoice), system picks the VAT GL from OB40 instead of J_1IT030K_V table.... (While posting MIRO it is correctly picking from J_1IT030K_V table). Please advsie. Thanks

  • Excel 97 avec labview 5.0

    Bonjour, Je désire lire une cellule Excel 97 avec LabView 5.0. Comment dois-je faire? Merci.

  • PS module ---Functional steps in Investment and Customer Projects in PS

    Hi Experts, I  am new in PS module,Pls tell the steps in-----> 1>Investment Project---The steps and transactions in PS according to Flow of  PS module in Investment project from start till end of PS. 2>Customer Project--The steps and transactions in