Quick CSS question on templates
Hi
I use Dreamweaver CS4,
Created a template & made the site based on it (taammevorach.com)
I want to create the menu in an editable region but i'm a bit confused how I would do so.
Can I create another css file just for that editable region? is that what is recommended? what would be the best way about creating a menu with some pictures and prices formatted neatly WITHIN that editable region
I'm VERY new to templates
Thanks!
See this discussion:
http://forums.adobe.com/message/2926278#2926278
Another approach is to use Server-Side-Includes, either alone or in combination with DWTemplates. The main advantage to SSIs is that when you need to edit your navigation, you open one file, make changes, upload to server, done. All the magic happens on the server side.
Guidance on when to use DW Templates, Library Items and SSIs -
http://www.adobe.com/devnet/dreamweaver/articles/ssi_lbi_template.html
More on DWTemplates -
http://forums.adobe.com/message/2032104#2032104
More on SSI
http://forums.adobe.com/message/2112460#2112460
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Similar Messages
-
Hi guys im relatively new to css ive just learn few of the
basic to contruct
a layout in divs.
i have one issue i dont know how to overcome its just
positioning a div
using floats and the clear styles.
http://www.strongtowerint.org/ginericpage.html
check the link..I'm trying to have all divs at the top in its
right full
area instead the middle content div lingers under neath it
all and i know no
way to fix that. i tried floating right and left clearing
right and left for
each div and what you see is the best i came up with all
combos.
i also tried reizing the width of the content div to no user.
thanqx for your replyAre you using an external .css file for the dynamic text in
your Flash
movie, or is the formatting written in actionscript?
Is some of the formatting working in Safari or is none of the
formatting
showing up?
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119
http://www.macromedia.com/software/trial/ -
Few questions on Templates and Favorites
Experts,
Few fundamental questions on Templates and Favorites...
1) Can Favorites be shared with other users?
2) Can Templates be transported across systems (Dev or QA or PRD) ?
3) Can Templates be shared across planning area ( Yes, KF names are same across planning area?
Any insights appreciated!!!
Thanks
KrishnaHello Krishna
1. No, favorites are user specific and are not shared. Templates are.
2. There are no transports in the traditional sense in S&OP. So a Template can't really be transported. What you can do, however, is open a Template in DEV, for example, then log off and log back on - just this time to QA or PRD. This assumes you have the same planning area, KF etc.in each system. Now you can add it to the templates in QA or PRD ... this is how you get it from one system to another.
3. I believe they are not shared between planning areas. If you make a planning area copy, I think they might come over but if you built a new PA2 from scratch, the ones you have in PA1 won't be there. If you want to get a planning view template from one PA to another, you basically follow the steps as in my answer to your second question. Again, for sharing a planning view Template between Planning Areas the attributes, time profiel and key figures you use have to be the same.
Hope this helps,
Jens -
Hi everyone, I have two CSS questions regarding my layout.
First off, it is located at:
http://robles.clunet.edu/~ssmi/tsr9/tsr9template.html
The CSS is embeded in the file (it will linked from a
different file once I am done with this design, but beside the
point)
My first question is about how I can keep the right top image
from being bumped down to the next line when the window is resized.
I want it to squeeze into some, but then at a point have the scroll
bars kick in.
My other question is how I could make the title image "The
Scott Report" centered between the two left and right images up
top.
Could anyone help out?
Thanks a lot!Check the AppleCare number for your country here:
http://support.apple.com/kb/HE57
Call them up, and let them know you would like to be transferred to the Account Security Team. -
dw, css, and a template, what is the best way to create a 20
page website with different header content on each page? i am
trying to insert a specific image and background color for each
header on every page. what is the easiest or best way to do this?
thanks, bryan"mediastream13" <[email protected]> wrote in
message
news:f47bes$9om$[email protected]..
> ok, murray, here is the site.
http://www.helphotline.org
> in I.E. 6 i can't see the background color behind the
header images,
I'm seeing a hot pink background (which is my browser default
- so that I do
remember to declare a background color). You need to add:
body { background-color: white;} to your stylesheet, or into
the imbedded
styles on your page.
In Firefox, the very top black section, #headertop is hidden
behind the
header image.
> background of the date/time isn't stretching the full
length of the
> screen, and
> the margins aren't working in the main content area. how
can i put a
> background
> color behind the header images?
I can see the header image stretching right across the page..
so not sure
what color is missing there.
> is there anyway to download i.e. six on my computer if i
already have
> i.e.7? i
> just want to be able to preview the site before i upload
the changes. it
> seems
> everything works in i.e. 7.
Yes, I used this and it works really well.
http://tredosoft.com/Multiple_IE
Nadia
Adobe® Community Expert : Dreamweaver
CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
~ Customisation Service Available ~
http://www.csstemplates.com.au -
Hi all .hope all is well ..A quick trim question
Hi all
Hope all is well ......
I have a quick trim question I want to remove part of a string and I am finding it difficult to achieve what I need
I set the this.setTitle(); with this
String TitleName = "Epod Order For: " + dlg.ShortFileName() +" " + "Read Only";
dlg.ShortFileName();
this.setTitle(TitleName);
setFieldsEditable(false);
[/code]
Now I what to use a jbutton to remove the read only part of the string. This is what I have so far
[code]
void EditjButton_actionPerformed(ActionEvent e) {
String trim = this.getTitle();
int stn;
if ((stn = trim.lastIndexOf(' ')) != -2)
trim = trim.substring(stn);
this.setTitle(trim);
[/code]
Please can some one show me or tell me what I need to do. I am at a losethere's several solutions:
// 1 :
//you do it twice because there's a space between "read" and "only"
int stn;
if ((stn = trim.lastIndexOf(' ')) != -1){
trim = trim.substring(0,stn);
if ((stn = trim.lastIndexOf(' ')) != -1){
trim = trim.substring(0,stn);
//2 :
//if the string to remove is always "Read Only":
if ((stn = trim.toUpperCase().lastIndexOf("READ ONLY")) != -1){
trim = trim.substring(0,stn);
//3: use StringTokenizer:
StringTokenizer st=new StringTokenizer(trim," ");
String result="";
int count=st.countTokens();
for(int i=0;i<count-2;i++){
result+=st.nextToken()+" ";
trim=result.trim();//remove the last spaceyou may find other solutions too...
perhaps solution 2 is better, because you can put it in a separate method and remove the string you want to...
somthing like:
public String removeEnd(String str, String toRemove){
int n;
String result=str;
if ((n = str.toUpperCase().lastIndexOf(toRemove.toUpperCase())) != -1){
result= str.substring(0,stn);
return result;
}i haven't tried this method , but it may work... -
I have a picture i am trying to put inside a div that has a class already which makes pictures have a frame around them when i insert them into it, which is fine for the main image but i am trying to add an extra image in there and i dont want that frame to be there.
I will attach a picture and a link to the site i am talking about.
If anyone can help me with this CSS question or how i can go about getting rid of the frame around the step 1, step 2 and step 3.
eWeb Solutions Website Development
Thanks!Take the frame class out the div and apply it to select images like this:
<div>
<img class="frame" src="step1.jpg">
<img src="picture1.jpg">
</div>
<div>
<img class="frame" src="step2.jpg">
<img src="picture2.jpg">
</div>
Nancy O. -
Question Slide Templates and importing
I have a template with question slides and I've
saved it as a cp file. I then attempted to import slides and
objects from another project. It appears to be importing, and then
the only slides I have are the originals. None of the new slides
appear. ???Hi there mfubib
Creating a template is simple. You may create one from
scratch or you may choose to take any existing project and save it
as a template.
To create one from scratch, click File > Record/Create
> New Project... > Other. You then set the size and whatnot
and eventually end up in the editing environment. You then add the
elements that you wish to have in your template. Once your template
looks like you want, you follow what is outlined in the next
section.
To save any existing project as a template, click File >
Save As... and when the Save As dialog appears, click the drop-down
menu at the bottom and choose "Adobe Captivate Templates (*.cptl).
I'm not sure what you mean with "Additional flexibility with
question slide template with Captivate 3". There is no "template"
per se. What we see with Captivate 3 and question slides is that we
may now copy, paste, import and export Question slides. We may also
randomize them by creating question pools and drawing random
questions based on the pool. We may also shuffle answers as well as
customize the buttons used. But that's about it as far as I can
recall. Perhaps if you are able to articulate more about what it is
you are wanting to do, we might better answer the question.
Cheers... Rick -
Hi all,
Could anyone advise me if i can add anything within - header('Location: http://www.mysite.co.uk/thankyou.html'); in the script below so as the page
re- directs back to the main index page after a few seconds ?
Thankyou for any help.
<?php
$to = '[email protected]';
$subject = 'Feedback form results';
// prepare the message body
$message = '' . $_POST['Name'] . "\n";
$message .= '' . $_POST['E-mail'] . "\n";
$message .= '' . $_POST['Phone'] . "\n";
$message .= '' . $_POST['Message'];
// send the email
mail($to, $subject, $message, null, '');
header('Location: http://www.mysite.co.uk/thankyou.html');
?>andy7719 wrote:
Mr powers gave me that script so im rather confused at this point in time
I don't think I "gave" you that script. I might have corrected a problem with it, but I certainly didn't write the original script.
What you're using is far from perfect, but to suggest it would lay you open to MySQL injection attacks is ludicrous. For you to be prone to MySQL injection, you would need to be entering the data into a MySQL database, not sending it by email.
There is a malicious attack known as email header injection, which is a serious problem with many PHP email processing scripts. However, to be prone to email header injection, you would need to use the fourth argument of mail() to insert form data into the email headers. Since your fourth argument is null, that danger doesn't exist.
One thing that might be worth doing is checking that the email address doesn't contain a lot of illegal characters, because that's a common feature of header injection attacks. This is how I would tidy up your script:
<?php
$suspect = '/Content-Type:|Bcc:|Cc:/i';
// send the message only if the E-mail field looks clean
if (preg_match($suspect, $_POST['E-mail'])) {
header('Location: http://www.example.com/sorry.html');
exit;
} else {
$to = '[email protected]';
$subject = 'Feedback form results';
// prepare the message body
$message = 'Name: ' . $_POST['Name'] . "\n";
$message .= 'E-mail: ' . $_POST['E-mail'] . "\n";
$message .= 'Phone: ' . $_POST['Phone'] . "\n";
$message .= 'Message: ' . $_POST['Message'];
// send the email
mail($to, $subject, $message);
header('Location: http://www.example.com/thankyou.html');
exit;
?>
Create a new page called sorry.html, with a message along the lines of "Sorry, there was an error sending your message". Don't put anything about illegal attacks. Just be neutral.
By the way, when posting questions here, don't use meaningless subject lines, such as "Quick script question". If you're posting here, it's almost certain to be a question about a script. It doesn't matter whether it's quick. Use the subject line to tell people what it's about. -
CheckboxDatagrid (extended) CSS question
Hello
In our application we make use of the CheckBoxDataGrid, which rocks.
We are playing with the CSS and noticed that we arent able to change the "chromeColor" property, in CSS. Only in the MXML.
I would like to set the style in the CheckBoxDataGrid super class, but I do not see a way to specify "headerStyleName".
How and where would that occur in an extended class? Would it need to happen in the constructor?
Also, how would you re-assign the CSS, in ActionScript, in this extended DataGrid class? Any ideas?
Any help is appreciated, thanks folks!kumar wrote:
Browser: IE 7 (** Is it the browser issue**)Yes. Interactive Report CSS question.. expands the page width to accommodate the IR, with a scrollbar on the viewport that allow the user to view the full width.
Remove
#apexir_DATA_PANEL {
margin-bottom: 10px;
overflow: auto;
}The IE7 bug can be addressed by feeding it the following CSS fix targeted at pre-IE8 browsers with a conditional comment in the page HTML Header:
<!--[if lt IE 8]>
<style type="text/css">
#too-wide .rc-body {
float: none;
</style>
<![endif]-->Specify the <tt>too-wide</tt> static region ID on the IR region for use as a CSS selector.
However, presenting information in a way that requires users to scroll the viewport horizontally is clunky. This will be particularly true in combination with an IR. Think about the user experience: is there an alternative way of displaying this information? -
Hi guys,
Firstly a very Merry Christmas to you all !
I'm just getting to grips with converting all the text on my
site to CSS and have a quick question.
On some of my pages I add an 'Also see' links box aligned to
the right - it's a CSS div tag thingy someone kindly talked me
through once. All of my pages are built from a template with an
editable region.
My question is, can I add this box (perhaps with a standard
'Also check out' title and then spaces for my links) at the
template level? This will save me having to go to Insert>Layout
Objects>DivTag on every page. I've tried simply adding this to
the editable region of the template but it simply pushed the
editable region box over to the right and then didn't appear on my
pages
Also, the links box would ideally appear about half way down
my pages on the right...
Hope you can help, many thanks in advance!
James
Here's an example page where I have manually added my link
box on the right of the page...
http://www.fyrne.com/james_journalism/Pages/Mosaic_of_the_med.htmlYour CSS link implies that the CSS file is in the Templates
folder. You
shouldn't have anything there other than the template (dwt)
files
themselves. Please move it out to any other location in your
site.
<link href="../../Templates/Box.css" rel="stylesheet"
type="text/css">
Changes made to template editable regions would not propagate
to existing
child pages - that's why you aren't seeing that addition in
them....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"JamesFryer" <[email protected]> wrote in
message
news:[email protected]...
> Hi guys,
>
> Firstly a very Merry Christmas to you all !
>
> I'm just getting to grips with converting all the text
on my site to CSS
> and
> have a quick question.
>
> On some of my pages I add an 'Also see' links box
aligned to the right -
> it's
> a CSS div tag thingy someone kindly talked me through
once. All of my
> pages are
> built from a template with an editable region.
>
> My question is, can I add this box (perhaps with a
standard 'Also check
> out'
> title and then spaces for my links) at the template
level? This will save
> me
> having to go to Insert>Layout Objects>DivTag on
every page. I've tried
> simply
> adding this to the editable region of the template but
it simply pushed
> the
> editable region box over to the right and then didn't
appear on my pages
>
>
> Also, the links box would ideally appear about half way
down my pages on
> the
> right...
>
> Hope you can help, many thanks in advance!
>
> James
>
> Here's an example page where I have manually added my
link box on the
> right of
> the page...
>
http://www.fyrne.com/james_journalism/Pages/Mosaic_of_the_med.html
> -
This should be a quick one - I have just added in some links to the other countries on the page below. Basically all the links under the main Botswana image on the left hand side.
Trouble is, that they have knocked the second row of lodges down to their right (this is how they should appear: http://www.goodsafariguide.com/botswana/index.php)
I thought the culprit might be a clear:both; in the #outerWrapper #contentWrapper #content #row_two rule in the botswana_layout.css file, but apparently not.
If anyone could quickly spot how to fix this that would be great.
The page is here:
http://www.goodsafariguide.com/botswana/botswana.php
Thank you!Good news with the solution!
Iain71 wrote:
So its all looking as it should now:
http://www.goodsafariguide.com/botswana/botswana3.php
Its interesting that you mention the <a href="someurl.php"><div>Some content</div></a> thing. Although it seems to work, it wa something I wasn't entirely convinced was technically correct. I'm not sure how else you would do that though, and it seems a fairly common thing on sites (if not achieved the same way), ie having a large area that acts as a link. Maybe it should be contained in an outer DIV.
Thanks again for your help.
As I understand it, strictly speaking a <div> cannot be a link so, it should not be wrapped in an anchor tag. I think it has something to do with the fact that a <div> is a block level element and <a> is in line. This link http://htmlhelp.com/reference/wilbur/special/a.html is a reference for <a> it lists what other elements it can occur in and what it can contain. An <a> can be placed inside a <div> but not the other way around. Having said that, your use of the two elements kind of proves that they work but then you can fix wood together with nails and screws but some situations call for one or the other! Reading up on this, I learn that it's different now in HTML5 but then I imagine, that was done to confuse me!
The way I work out a page these days is based on my simple understanding of semantic code which for me means that the best element to use will always be the one that was intended for that job. The most obvious are <ul> and <li> for lists and <p> for a paragraph. I suppose <head> and <body> give even stronger clues. I also understand that search engines and in particular, Google, appreciate the proper use of these elements when pages are crawled. I know that SEO is a dark art but it kind of makes sense that a stupid robot will understand only the information is sees. It knows a list is a list but it doesn't know that a div is a list.
I have had a go at building your box of images using Dreamweaver Javascript rollover and the list elements. It's quick and dirty and the javascript makes it look more complicated than it is. However, if you compare my code with yours, I think that you will agree that my alternative is more straight forward and easier to read.
One other thing about this idea is that but putting your image in the page, you can get a bit more content in there with your alt="" and title"" attributes. At the moment, your option is a string of content-less divs.
martcol.co.uk/test/africa.html
Regards
Martin
You have to bear in mind that I am a serious hobbyist web developer who trys his hardest understand this shizzle. -
Quick css name question...
I created a simple file in dw main.css. It worked fine in dw and firefox testing - but failed in safari... many times I resent to web and cleared cache etc... but no joy
then I changed the name to something else and all worked
what went wrong? Is main.css some kind of 'protected term' or non permitted words that safari does not like?
btw this was the only code for it:
body {
background-color: #000;
font-family: "Times New Roman", Times, serif;
font-size: 16px;
color: #FC0;
a:link {
color: #FF0;
a:visited {
color: #FC6;
a:hover {
color: #FFC;
text-decoration: underline;Filenames are not protected, but if the browser does not recognize the file type then it will do unpredictable things with it. If you pointed your browser to main.css, you would probably see just text. Files with the htm, html, etc. extensions are interpreted by the browser as .html and processed as such.
-
SharePoint 2013 Not Loading CSS On Site Template
Hi
I have a question regarding adding a site collection with a custom template ( by selecting a template later option)
Basically I have a site that I need to move over from one server to another. The template saves as a template no problem with all lists etc.
When adding the site collection, I choose custom and select template later. After going to the site collection it then asks to pick a template, after which I choose solution gallery and upload and activate the site template I made before. I then return to
template picker page and choose the custom template uploaded
The problem I am having is that when the template is chosen and being used it does not load any of the css or anything. Everything is just listed downwards and all jumbled up all over the place.
Both servers are running SP2013. The Site Template doesnt have any major things on it apart from some custom new/edit forms and normal SPD 2013 Workflows.
Any ideas on how I can get the CSS to load?Hi
you can check if css have loaded but isn't the last one !
to do this use a dev tool ( F12 in IE ) and check for an element if a style from your custom css file is there and overwrited by other css file )
For more details check this doc
http://blog.blksthl.com/2013/02/26/a-guide-to-quick-sharepoint-2013-branding/
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you. -
CSS question - complete Novice
i know some of you people must dispair at novice questions
but we all need to start somewhere don't we. i have had dreamweaver
for 18 months and have hardly used it but now i am starting to
learn. basically my problem is this...and i bet it's an old
chesnut.
i have two different places on my website that have links,
one with a green background, that on hover turns white.... thats in
the settings. thing is i want an email link thats on a white
background in the same page, i have tried different colurs but it
just doesn't look right.
could anyone tell me in simple terms what i need to add to
either the CSS file or change something in settings that allow me
to do this.
sorry if this has been asked before...thanks for your help,
Bryan
PS i am using MX 2004Pseudo-classes and container styles are what you need - here
are some
tutorials.
http://www.mako4css.com
http://www.thepattysite.com/linkstyles1.cfm
http://www.projectseven.com/tutorials/pseudoclasses/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"beebbuoy" <[email protected]> wrote in
message
news:eng6jm$8dg$[email protected]..
>i know some of you people must dispair at novice
questions but we all need
>to
> start somewhere don't we. i have had dreamweaver for 18
months and have
> hardly
> used it but now i am starting to learn. basically my
problem is
> this...and i
> bet it's an old chesnut.
>
> i have two different places on my website that have
links, one with a
> green
> background, that on hover turns white.... thats in the
settings. thing is
> i
> want an email link thats on a white background in the
same page, i have
> tried
> different colurs but it just doesn't look right.
>
> could anyone tell me in simple terms what i need to add
to either the CSS
> file
> or change something in settings that allow me to do
this.
>
> sorry if this has been asked before...thanks for your
help, Bryan
>
> PS i am using MX 2004
>
Maybe you are looking for
-
A javaScript code that runs fine in IE but not in other plz help
Hello friends, plese help me in getting the code for Opera and Mozilla browsers. The following code runs fine in IE but not in other browsers. it show titlebar in other browsers. What to do disable titlebar in other browsers? plz help <html> <head> <
-
Got a SONY mp3 player for Christmas: How do I sync with iTunes?
OK, here's the deal. I have a MacBook Pro and use iTunes regularly, but now I have a SONY mp3 player from Santa. How do I get my songs from iTunes onto my SONY? Someone help. Thanks!
-
I bought an entire season of a tv show, watched part of it. I tried to watch one today and "the original file was not found. Would you like to locate it" error message came up. When I clicked on that, nothing was found. TV shows don't expire and I ha
-
XML Partitioning in Oracle 10.2
Was wondering regarding a possible opportunity with a broker client, is it possible (or will there be a back patch or sorts) to XML partition as known in 11.1.0.7 for XMLType OR, lets say Oracle database version 10.2.0.5.0 ? Thx Marco
-
DbConnectionAttributes for XML data source
Post Author: zmtun CA Forum: .NET I use XML document which includes both Schema and data. I'd like to get DbConnectionAttributes to set to the crystal report's ConnectionInfo property. Thanks.