Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS min-width?

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #35777
    cybershot
    Participant

    I am coding a site right now using dreamweaver. I like using dreamweaver to see how things come out in the visual editor. Sometimes things work well in the visual editor, other times they look funky. I just coded the navigation for the site I am working on and I noticed that the last link in the list was wrapping down under the horizontal navigation even though I did not put a width rule on the ul. It looked fine in the browsers. So I decided to set a min-width rule to the ul and now in the visual editor of dreamweaver things look good. I was just wondering what you guys thought. Is it a good practice to set a minimum width to things when you don’t really need to set the actual width at all?

    #93228
    jamygolden
    Member

    It sounds like you’re developing for x-amount of browsers + for dreamweaver. You’ll probably end up with quite a few headaches while trying to make it /also/ work in dreamweaver. It will also add to code bloat.

    If you want to continue doing that, by all means, go ahead :p – but I wouldn’t suggest it to anyone. Get used to using an awesome text editor, like sublimetext2. I use ALT + TAB to switch between the editor and the browser. It’s really just as quick as it is in Dreamweaver to click on the visual tab. You may use split-view in dreamweaver… I sometimes split-view with a normal text editor and browser. Make half the screen the editor and the other half the browser. If you use linux or OSx, you could also have the browser in 1 workspace and the editor in another. I do all of those.

    #93232

    +1 to everything @jamy_za said.

    #93233
    tobeeornot
    Member

    @cybershot – DW has suited me for most things but I feel it is sometimes limited when using the wysiwyg because it does not always give you the most accurate visual representation. I found this to a particular problem when creating a WordPress site but the alternative is simply use the selected browsers to render the code, rather than the wysiwyg. I think it is a good idea to learn sublimetext as well.

    #93247
    TheDoc
    Member

    I shall repeat!

    Never, ever use DW’s Visual Mode as a way to do anything except modify text. It is not going to give you a proper representation of how browsers will render your code.

    #93350
    davidlab.be
    Participant

    not to sound mean, but did you read any of the replies in this post. Everyone is helping you and you refuse to listen.

    #93424
    TheDoc
    Member

    This:

    You should not look at it at all, it is a waste of time. Why? It will not help you making things look right in Dreamweaver because no one uses Dreamweaver visual editor to browse the web.

    And this:

    The reason no one answered your question was the fact that it was made moot by the point that you are only using it to make things look ok in Dreamweaver visual editor.

    #93427
    TheDoc
    Member

    We’re saying you shouldn’t add extra code to make something work in DW’s visual editor. I’m not saying it’s not useful, I’m saying you shouldn’t waste your time fixing things for it.

    It is never, ever going to be 100% accurate – so why bother relying on it?

    #93429
    TheDoc
    Member

    I understand it – it’s super quick and easy to check. I prefer just whipping to my browser and refreshing the page. Or, if you use a Mac you can give this a try: http://livereload.com/

    I can’t believe I haven’t set it up yet, actually!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.