| Pages: [1] |
|
|
Author |
Topic: CSS Styles on SnippetMaster (Read 1326 times) |
|
martza
Posts: 8
|
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?
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.  THANKS.
|
|
|
|
|
|
Jenkinhill
|
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.
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.
|
Kelvyn
|
|
|
|
martza
Posts: 8
|
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. 
|
|
|
|
|
|
martza
Posts: 8
|
Ohno....I did not use frames! I use TABLES! sorry. 
|
|
|
|
|
|
Jenkinhill
|
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
|
Kelvyn
|
|
|
|
martza
Posts: 8
|
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...  But I am willing to learn more! Thanks.
|
|
|
|
|
|
martza
Posts: 8
|
I tried to ad the editable text into div tags, but it made no difference in MS... 
|
|
|
|
|
|
martza
Posts: 8
|
I even tried to change the HTML file into XML but this made no difference to my font problem either.
|
|
|
|
|
|
Jenkinhill
|
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.
|
Kelvyn
|
|
|
|
martza
Posts: 8
|
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. 
|
|
|
|
|
|
Jenkinhill
|
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.
|
Kelvyn
|
|
|
|
martza
Posts: 8
|
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...
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. 
|
|
|
|
|
|
mjg
Posts: 8
|
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.
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|