SnippetMaster Support Forums
Return to main website
 
September 29, 2010, 12:35:36 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 29, 2010, 12:35:36 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: CSS Styles on SnippetMaster « previous next »
Pages: [1] Print
Author Topic: CSS Styles on SnippetMaster  (Read 1326 times)
martza

Posts: 8


[-] CSS Styles on SnippetMaster
« on: November 15, 2009, 06:03:34 AM »

I installed the free version of snippetmaster to my web server. It is working just fine exept when I edit a text area the CSS style that I have put in DreamWeaver is lost in SnippetMaster. I am able to put the style back in to the text manually with "STYLES" button in SnippetMaster but I am thinking is there any way to keep the style in the text automatically?  Shocked

And second question... If I replace an image in SnippetMaster editor, the page layout brakes totally, I mean when the image I want to add is not the same size as the original. Is there any way to keep the page layout from not braking? I hope my questions are clear enough.  Very Happy THANKS.
Report to moderator   Logged
Jenkinhill

Posts: 407



[-] Re: CSS Styles on SnippetMaster
« Reply #1 on: November 15, 2009, 09:14:46 AM »

the CSS style that I have put in DreamWeaver is lost in SnippetMaster.

How did you "put" the syle in Dreamweaver. The "style" should be in a linked css file, or in the page header. If it is an in-line style then the code may be removed and relocated in the header of the page when the editor tries to save the snippet/page as valid XHTML.

Quote
If I replace an image in SnippetMaster editor, the page layout brakes totally, I mean when the image I want to add is not the same size as the original. Is there any way to keep the page layout from not braking?

The uploaded image should really be resized to the correct values before uploading. It is possible to drag the outline of the image in the editor to make it smaller, but that just means a large size file  is being forced into a smaller display area. The image will not look good & will slow up page load time.
Report to moderator   Logged

Kelvyn
martza

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #2 on: November 15, 2009, 09:33:18 AM »

I created a new .css stylesheet and have a number of different styles (named separately) under it. In Snippet editor I am able to select the css style I want that I have created in Dreamweaver. I just would like that the css style would not dissapear in editor... all the text in editor are black and in some different font and I have to select the css style from a drop down menu in the Snippet editor. And somethimes when I have selected the style in the editor and I start typing, then after a while it may loose the style and continue the text in different font and style that snippet editor offers as default.

I have applied the css styles in frames that contain the texts when creating the site in dreamweaver. I apply a specific style to a certain frame in dreamweaver. Are these frames maybe confusing to the Snippet editor? I really hope to get to use the frame based webdesign.

Thanks if able to help. Smile
Report to moderator   Logged
martza

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #3 on: November 15, 2009, 02:41:28 PM »

Ohno....I did not use frames! I use TABLES! sorry.  Very Happy
Report to moderator   Logged
Jenkinhill

Posts: 407



[-] Re: CSS Styles on SnippetMaster
« Reply #4 on: November 15, 2009, 11:52:44 PM »

This thread may help: http://www.snippetmaster.com/forums/index.php/topic,1854.0.html

Sounds like you have not properly defined classes & font styles for all your containers, such as <p>. Selecting font styles in SM will just add extra style clutter to the page. But do whatever works for you.

Tables? In XHTML they should only be used for tabular data. Layout should be in <div>s - but
Report to moderator   Logged

Kelvyn
martza

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #5 on: November 16, 2009, 02:20:45 AM »

I have never before made a webpage that can be edited or modified outside of dreamweaver, exept by coding ofcourse. I have always used only HTML. Are you saying that I should ad in "div" everything that I want to edit in SM or do you mean that all the data in the page should be inside div´s? I am not new in webdesign, I have only used the simple methods before...  Very Happy But I am willing to learn more! Thanks.
Report to moderator   Logged
martza

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #6 on: November 16, 2009, 03:00:59 AM »

I tried to ad the editable text into div tags, but it made no difference in MS...  Sad
Report to moderator   Logged
martza

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #7 on: November 16, 2009, 03:50:07 AM »

I even tried to change the HTML file into XML but this made no difference to my font problem either.
Report to moderator   Logged
Jenkinhill

Posts: 407



[-] Re: CSS Styles on SnippetMaster
« Reply #8 on: November 16, 2009, 02:56:44 PM »

Are you saying that I should ad in "div" everything that I want to edit in SM

No, but the use of css layout for pages is a part of XHTML standard recommendations. And XHTML1 has been the standard for 9 years now.

Issues with styles in SM occur frequently when styles are not correctly applied to containers (a div is a container, as is <p>s or <td>s in a table). Make sure that your opening & closing snippet tags surround containers, so that one is not opened within the snippet & closed after the snippet closes or vice versa.
Report to moderator   Logged

Kelvyn
martza

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #9 on: November 18, 2009, 02:41:04 AM »

I have only used css in as styling the texts. Here is an example from the website´s code. I am not sure I explained my problem correctly.

<!-- #BeginSnippet name="isoylateksti" --><div class="isoylateksti" id="isoyla">VASTAAMME OHJELMA-ALAN KASVAVIIN <br />
TARPEISIIN OULUNSEUDULLA</div><!-- #EndSnippet -->

Here is a code where I have used snippets.

When I go to SM editor it shows the text with the css I have applied, but when I delete this text in order to change it then the css style dissapears and I have to apply it from the editor´s "styles" menu. This is no big deal for me if it works this way, but I am making this website to a person that does not know much about computers or websites and he himself wants to do the text updating.

thanks again.  Very Happy
Report to moderator   Logged
Jenkinhill

Posts: 407



[-] Re: CSS Styles on SnippetMaster
« Reply #10 on: November 18, 2009, 02:46:40 PM »

At a guess when you delete the text the div shrinks, cursor moves outside the div and so the new text is placed oustside the div. The codesweeper ought then to remove the empty div. Maybe better to highlight & then type over the existing text.

I think there is more control in the latest TinyMCE editor, but I don't know if Henri plans to include this in the next SM update.
Report to moderator   Logged

Kelvyn
martza

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #11 on: November 19, 2009, 08:22:43 AM »

okay, this must be that problem that I have...the editor sweeps my divs away. Thanks. I just was worrying that there is something wrong with my code. The fault did not come from the code then...thats good news. I think I can still consider myself a webdesigner...I quess...  Very Happy

SM editor is easy for me to use, but if I have to start to explain to a person who would be using it with my webdesign, that he has to be carefull not to delete the text in a way that cursor moves outside the div tags, he is going to get confused. I hope the TinyMCE editor comes in use soon if it has more control. CSS styles are quite important to me in my designs.

lots of thanks for help.  Very Happy
Report to moderator   Logged
mjg

Posts: 8


[-] Re: CSS Styles on SnippetMaster
« Reply #12 on: December 18, 2009, 03:43:33 PM »

You could also place your Begin snippet and End snippet inside the div.
<div class=images>
Begin Snippet
My content here
End Snippet
</div>
Thus preserving the class or id from being altered.
I also noted that your snippet name is the same as your class/id name for the div. This should not be a problem, but to be on the safe side I would not do it.
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: CSS Styles on SnippetMaster « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!