More Fun With CSS - (omg its difficult)
First I want to say thank you to everyone that has been helping learn css and all the power that it has.
Now this is a two part question.
Part 1.
(div.header-shadow)
I have a div tag that I inserted a very important image into. The image includes som text that I thought I would be able to place hotspots over and make links out of them. Well you guessed it I am unable to place hotspots over the text on the image.
Part 2.
(div.about-column1 and div.about-column)
I have a second area that has two columns in it what I would like to do is make the two columns into a single column that uses all of the space but only for this one page. Well when I try to delete one column and extend the width of the remaining column the change takes place on every page that I have setup with the two column theme.
Now to make sure things are clear I am working from a prebuilt template and trying to make modifications to it so that it fits my needs.
and here is the css if needed
body {
background-image: url(images/main-bg.jpg);
background-repeat: repeat-x;
background-color: #040404;
margin: 0;
padding: 0;
font-size: 11px;
color: #CCC;
font-family: Arial, Helvetica, sans-serif;
img {
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
#container {
width: 1000px;
margin: 0 auto;
.top-logo {
height: 91px;
padding: 0 0 0 27px;
width: 263px;
float: left;
margin: 0 0 29px 0;
.header {
height: 305px;
width: 849px;
margin: 0 0 0 76px;
background-image: url(images/main_img.png);
background-repeat: no-repeat;
padding: 36px 0 0 0;
.header-corner {
background-image: url(images/header-corner.gif);
width: 11px;
height: 269px;
float: right;
.header-content {
margin: 0px;
padding: 29px 0 0 10px;
float: left;
color: #333;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
text-align: center;
width: 488px;
.header-shadow {
background-image: url(images/header-shadow.gif);
height: 39px;
width: 849px;
.button-go {
float: right;
margin: 10px 0 0 0;
#content {
margin: 0 0 30px 0;
padding: 20px 20px 0 45px;
.about-column1 h1 {
font-family: Headache;
font-size: 28px;
color: #FFF;
font-weight: normal;
letter-spacing: -1px;
margin: 0 0 20px 0;
padding: 0px;
.footer-content {
width: 955px;
margin: 0 auto;
padding: 15px 0 0 45px;
.footer-copyright {
float: left;
padding: 13px 0 0 0;
.footer-icon {
float: left;
.content-img {
margin: 0 10px 20px 0;
padding: 0px;
width: 110px;
float: left;
.footer-icon ul {
margin: 0;
padding: 0;
list-style-type: none;
.footer-icon li {
margin: 0px;
padding: 0 2px 0 0;
display: inline;
.content-column {
width: 270px;
margin: 0 55px 0 0;
float: left;
.content-column01 {
width: 265px;
margin: 0 0px 0 0;
float: left;
.content-column h1 {
font-family: Headache;
font-size: 28px;
color: #FFF;
font-weight: normal;
letter-spacing: -1px;
margin: 0 0 20px 0;
padding: 0px;
.content-column01 h1 {
font-family: Headache;
font-size: 28px;
color: #FFF;
font-weight: normal;
letter-spacing: -1px;
margin: 0 0 20px 0;
padding: 0px;
.about-column {
float: right;
width: 418px;
.about-column h1 {
font-family: Headache;
font-size: 28px;
color: #FFF;
font-weight: normal;
letter-spacing: -1px;
margin: 0 0 20px 0;
padding: 0px;
.about-column1 {
float: left;
width: 400px;
.about-column1 ul {
list-style-type: none;
margin: 0px;
padding: 0;
background-image: url(images/icon-arrow.gif);
background-repeat: no-repeat;
background-position: left 3px;
.about-column1 li {
background-image: url(images/icon-arrow.gif);
background-repeat: no-repeat;
background-position: left 5px;
padding: 0 0 0 14px;
line-height: 18px;
.about-pix {
margin: 0 10px 0 0;
padding: 0px;
float: left;
height: 134px;
width: 241px;
.header-txt {
background-image: url(images/header-bg.gif);
height: 269px;
background-repeat: repeat-x;
margin: 0px 0 0 332px;
.clearboth {
clear: both;
.top-nav {
width: 595px;
float: right;
margin: 36px 0 0 0;
.top-nav ul {
margin: 0px;
padding: 0px;
.top-nav li {
display: inline;
margin: 0px;
padding: 0px;
list-style-type: none;
.footer {
background-image: url(images/footer-bg.gif);
height: 95px;
.txt-link {
font-family: Headache;
font-size: 12px;
font-weight: normal;
color: #FFF;
h1 {
font-family: Headache;
font-size: 28px;
color: #FFF;
font-weight: normal;
letter-spacing: -1px;
margin: 0 0 20px 0;
padding: 0px;
.contact-img {
float: left;
height: 137px;
width: 140px;
margin: 0 20px 0 0;
.txt-blank {
color: #000;
.contact-column {
float: left;
width: 750px;
.contact-column ul {
margin: 0px;
padding: 0px;
list-style-type: none;
.form{
padding: o;
margin: 0;
div.fieldwrapper{ /*field row DIV (includes two columns- Styled label column and 'thefield' column)*/
width: 400px; /*width of form rows*/
overflow: hidden;
padding: 0;
margin: 0;
height: auto;
div.fieldwrapper label.styled{ /* label elements that should be styled (left column within fieldwrapper DIV) */
float: left;
width: 80px;
margin-right: 15px; /*spacing with right column*/
div.thefield ul {
margin: 0px;
padding: 0px;
div.thefield li {
display: inline;
list-style-type: none;
margin: 0px;
padding: 0 6px 0 0;
div.fieldwrapper div.thefield{ /* DIV that wraps around the actual form fields (right column within fieldwrapper DIV) */
float: left;
margin-bottom: 10px; /* space following the field */
div.fieldwrapper div.thefield input[type="text"]{ /* style for INPUT type="text" fields. Has no effect in IE7 or below! */
width: 230px;
div.fieldwrapper div.thefield textarea{ /* style for TEXTAREA fields. */
width: 229px;
height: 100px;
div.fieldwrapper div.thebig textarea {
width: 400px;
height: 100px;
div.buttonsdiv{ /*div that wraps around the submit/reset buttons*/
width: 379px;
text-align: left;
.contact-column li {
background-image: url(images/icon-arrow.gif);
background-repeat: no-repeat;
background-position: left 5px;
padding: 0 0 0 14px;
line-height: 18px;
Thanks for the help
Thanks i did not even pay attention to the fact that the img was in the background even though it says so right in the css, to close to the project. The style sheet was what I was thinking, but what I should have asked is "How do should the style sheet for what I want to do with the columns be written?" This is what I should have asked. I know I should start it with something like:
<style type="text/css">
--------------------------and after this is where it gets fuzzy or nonexsistent--------------------------------------
because is it the div#container, or div#content, or the div.about-column1 or div.about-column that this style sheet is to be written for, I have no idea?
So if someone could show me how this style sheet should be written I would be greatful.
Similar Messages
-
Okay, so I'm trying to modify a region template and I can't get it to work. I've tried using custom CSS in my HTML Header, I've tried actually adding a line to the CSS include file on the server - I can't get anything to work. Firebug shows that as soon as I change the class on the RegionHeader, I am relegated to default <hd> formatting.
I'm trying to use template 17 and all I want to change is the size of the font from Large to Normal.
Here's the base css from the template:
.t17RegionHeader{font-family: arial, helvetica, sans-serif;font-size:large;
color:#aaa;text-align:left;border-bottom:1px solid #CCC;
font-weight:bold;padding:2px 8px;white-space:nowrap;}Here's what I want:
.t17RegionHeaderNorm{font-family: arial, helvetica, sans-serif;font-size:normal;
color:#aaa;text-align:left;border-bottom:1px solid #CCC;
font-weight:bold;padding:2px 8px;white-space:nowrap;}And yes, this is a copy of the original region template. I have four or five regions on the page, so I just changed one of them to use the new region template until I get it right. This probably has something to do with inheritance, but I don't have a clue how to override it. Your help is greatly appreciated.Hi blarman74,
When you copy the report region, why not do something like:
In your report region template you have the following template definition (this is what I have, on APEX 4 - I guess you are one 3.2.x so it's a little different?):
<div class="rounded-corner-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
<div class="rc-gray-top"><div class="rc-gray-top-r">
<div class="rc-title normal-header">#TITLE#</div>
<div class="rc-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
</div></div>
<div class="rc-body"><div class="rc-body-r"><div class="rc-content-main">#BODY#<div class="clear"></div></div></div></div>
<div class="rc-bottom"><div class="rc-bottom-r"></div></div>
</div> You'll notice in the div's surrounding the #TITLE# I added another class called normal-header. So then in your page header, or css - wherever you put it, Add the following:
.normal-header {
font-size: normal !important;
}Well you could probably add !important to the .t17RegionHeaderNorm font-size rule, but wasn't sure exactly how you've done so thought it better to describe the above. And the way I have described, it saves copying all the extra css rules.
Ta,
Trent
Edited by: tr3nton on Oct 2, 2010 11:40 AM
As a side note, I was just looking at your profile - I don't know if you want to bother, but you may want to add http:// to the URL of your homepage, as it's reading it as a relative link to the oracle site, so pointing to: http://forums.oracle.com/forums/www.transystemsllc.com which obviously isn't a real site. -
More Fun with NULLs and Empty Strings
Greetings,
I ran across this behavior recently and thought I'd share with the forum. I'm running 10.2.0.2. Note the difference in behavior between passing and explicit NULL in the parameter vice passing an empty string (''):
CREATE OR REPLACE PROCEDURE NULL_ES_TEST(PARAM1 IN VARCHAR2) IS
VAR1 CHAR(1);
BEGIN
IF PARAM1 IS NULL THEN
DBMS_OUTPUT.PUT_LINE('PARAM1 IS NULL');
END IF;
VAR1 := PARAM1;
IF VAR1 IS NULL THEN
DBMS_OUTPUT.PUT_LINE('VAR1 IS NULL');
ELSE
DBMS_OUTPUT.PUT_LINE('VAR1 IS NOT NULL');
END IF;
DBMS_OUTPUT.PUT_LINE('THE LENGTH OF VAR1 IS '||TO_CHAR(LENGTH(VAR1)));
END NULL_ES_TEST;
EXEC NULL_ES_TEST(PARAM1 => '');
PARAM1 IS NULL
VAR1 IS NOT NULL
THE LENGTH OF VAR1 IS 1
(var1 now holds a single space)
EXEC NULL_ES_TEST(PARAM1 => NULL);
PARAM1 IS NULL
VAR1 IS NULL
THE LENGTH OF VAR1 IS
Any Comments or Insights are welcome.
Sincerely,
Dale WardWell somethings not as expected (tested on 10.2.0.3)
Even if you default the parameter to '', it treats null and '' differently.
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE PROCEDURE NULL_ES_TEST(PARAM1 IN VARCHAR2 := '') IS
2 VAR1 CHAR(1);
3 BEGIN
4 IF PARAM1 IS NULL THEN
5 DBMS_OUTPUT.PUT_LINE('PARAM1 IS NULL');
6 END IF;
7 VAR1 := PARAM1;
8 IF VAR1 IS NULL THEN
9 DBMS_OUTPUT.PUT_LINE('VAR1 IS NULL');
10 ELSE
11 DBMS_OUTPUT.PUT_LINE('VAR1 IS NOT NULL');
12 END IF;
13 DBMS_OUTPUT.PUT_LINE('THE LENGTH OF VAR1 IS '||TO_CHAR(LENGTH(VAR1)));
14* END NULL_ES_TEST;
SQL> /
Procedure created.
SQL> exec null_es_test(null);
PARAM1 IS NULL
VAR1 IS NULL
THE LENGTH OF VAR1 IS
PL/SQL procedure successfully completed.
SQL> exec null_es_test('');
PARAM1 IS NULL
VAR1 IS NOT NULL
THE LENGTH OF VAR1 IS 1
PL/SQL procedure successfully completed.
SQL> -
More fun with enumerated dropdowns - Binding to table
Hi All,
I'm having some trouble with enumerated dropdowns.
My context is as follows:
node DATA 1...1
---> node FLIGHTS 0...N
-->CARRID etc from SFLIGHTS
--->DDL (element type string)
I have successfully tried to add a simple dropdown with the following code on the component controller:
method wddoinit .
data lo_nd_data type ref to if_wd_context_node.
data lo_el_data type ref to if_wd_context_element.
data ls_data type wd_this->element_data.
data lv_ddl like ls_data-ddl.
data node_info type ref to if_wd_context_node_info.
data vals type table of wdr_context_attr_value.
data: s_element type wdr_context_attr_value.
data: str type string.
* navigate from <CONTEXT> to <DATA> via lead selection
lo_nd_data = wd_context->get_child_node( name = wd_this->wdctx_data ).
* get element via lead selection
lo_el_data = lo_nd_data->get_element( ).
lo_el_data->get_static_attributes(
importing
static_attributes = ls_data ).
* get node info
call method lo_nd_data->get_node_info
receiving
node_info = node_info.
do 25 times.
str = sy-index.
condense str no-gaps.
s_element-text = str.
s_element-value = str.
append s_element to vals.
enddo.
* Set Value_sets to node_info
call method node_info->set_attribute_value_set
exporting
name = 'DDL'
value_set = vals
endmethod.
This works fine, however now I am trying the same thing with a field from the SFLIGHTS table.
I want to display a table of the retrieved SFLIGHTS but a field as a dropdown with valid entries from the database. I have added the following code to the view.
method WDDOINIT .
data lo_nd_data type ref to if_wd_context_node.
data lo_nd_flights type ref to if_wd_context_node.
data lo_el_flights type ref to if_wd_context_element.
data ls_flights type wd_this->element_flights.
data gt_flights type table of sflights.
select * from sflights into table gt_flights.
* navigate from <CONTEXT> to <DATA> via lead selection
lo_nd_data = wd_context->get_child_node( name = wd_this->wdctx_data ).
* navigate from <DATA> to <FLIGHTS> via lead selection
lo_nd_flights = lo_nd_data->get_child_node( name = wd_this->wdctx_flights ).
lo_nd_flights->bind_table( gt_flights ).
types: begin of ty_carrname,
carrname type s_carrname,
end of ty_carrname.
data: gt_carrname type table of ty_carrname.
select distinct carrname
from sflights
into table gt_carrname.
data lv_carrname like ls_flights-carrname.
data node_info type ref to if_wd_context_node_info.
data vals type table of wdr_context_attr_value.
data: s_element type wdr_context_attr_value.
data: str type string.
lo_nd_flights->get_static_attributes(
importing
static_attributes = ls_flights ).
call method lo_nd_flights->get_node_info
receiving
node_info = node_info.
field-symbols: <carrname> like line of gt_carrname.
loop at gt_carrname assigning <carrname>.
str = <carrname>-carrname.
s_element-text = str.
s_element-value = str.
append s_element to vals.
endloop.
call method node_info->set_attribute_value_set
exporting
name = 'CARRNAME'
value_set = vals.
endmethod.
I can display all the entries with a repeating subform but when I bind the CARRNAME to an enumerated dropdown I get an ADS rendering error:
WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server
I have looked in the Error PDF but it is blank.
Does anyone have any suggestions on what is goign wrong or how to diagnose the problem.
I am assuming you can have a data element that has a 0..N cardinality (i.e a table element) and is also of type enumerated dropdown.
I'm guessing this is something to do with cardinality but I have no way to find out.
Thanks,
GregorI have looked in the defaultTrace file and found the following errors:
1. A pdf document with 0 pages.
Return Status: Render Failure
Output Trace returned: <?xml version="1.0" encoding="UTF-8"?>
<log>
<m mid="29184" tid="10064.4896" sev="f" d="2008-11-12T15:20:01.722Z">Malformed SOM expression: $record.sap-vhlist.FLIGHTS\\.DATA[*]\\.CARRNAME.item[*]</m></log>
Has anybody else used the enumerated dropdown element bound to dynamic data?
I am using the latest releases and the "Specify Item Values" on the Object->Binding tab is filled in with what looks correct ($record.sap-vhlist.FLIGHTS\.Data etc) but greyed out.
Thanks -
how can i purchase a macbook air in Nigeria? apple has no shop in the entire country and independent dealers charge ridiculously sometimes more than double the prices of mac products without guarantee of getting it with required specifications. its sad cos Nigeria has a very large apple market plus phones and most recently ipads especially. its been frustrating trying to get a macbook, even have to wait for when someone will travel out of the country, then you send the person(thats if you have the money at that time). Please somebody help inform apple maybe they can do something about this, its really disappointing.
This is a user-to-user technical support forum. You're not addressing Apple here. Use the apporpriate link on fhe Feedback page to let Apple know how you feel:
http://www.apple.com/feedback -
Centering a file in the browser vertically with CSS
I remember there was an issue doing this with tables and I am
wondering
if this is also hard to to with CSS. I would like to center a
flash
file, both vertically and horizontally. I have it centered
horizontally
but not vertically. This is what I have so far.
body {
background-color: #fff;
margin: 0;
padding: 0;
#container {
width: 800px;
margin: 0 auto;
background-color:25231a;
My flash file is inside of the container in the html file.
What do I need to do, to get this centered vertically as
well?
I tried this, but with no luck.
#container {
width: 800px;
margin: auto;
background-color:25231a;
Thank you for any help!
BrianIf I don't hear anything positive from Adobe about fixing it,
I am going to
be much more vocal.
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
==================
".: Nadia :. **AdobeCommunityExpert**"
<[email protected]> wrote in
message
news:[email protected]...
> It is getting more and more difficult to support such
posts. I don't have
> that much time to copy and paste a link,find it's wrong
and then have to
> copy and paste again...........
>
>
> --
> Nadia
> Adobe� Community Expert : Dreamweaver
> --------------------------------------------
>
http://www.csstemplates.com.au
- CSS Templates | Free Templates
> --------------------------------------------
>
http://www.perrelink.com.au
- Web Dev
>
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
>
http://www.adobe.com/devnet/dreamweaver/css.html
> -------------------------------------------------
>
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
>>I will no longer support posts that contain broken
links like that.
>>
>> --
>> 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
>> ==================
>>
>>
>> ".: Nadia :. ACE :."
<[email protected]> wrote in message
>> news:[email protected]...
>>> OMG - nothing against you Excavatorak, but links
posted via the web
>>> forum interface come through as an absolute mess
on the nttp forum :\
>>>
>>>
>>> --
>>> Nadia
>>> Adobe� Community Expert : Dreamweaver
>>> --------------------------------------------
>>>
http://www.csstemplates.com.au
- CSS Templates | Free Templates
>>> --------------------------------------------
>>>
http://www.perrelink.com.au
- Web Dev
>>>
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
>>>
http://www.adobe.com/devnet/dreamweaver/css.html
>>>
>>>
>>>
>>>
>>>
>>> "Excavatorak" <[email protected]> wrote
in message
>>> news:[email protected]...
>>>> <a target=_blank
class=ftalternatingbarlinklarge
>>>> href="
http://www.jakpsatweb.cz/css/css-vertical-center-solution.html">http://www
>>>>
.jakpsatweb.cz/css/css-vertical-center-solution.html</a>
>>>> <a target=_blank
class=ftalternatingbarlinklarge
>>>> href="
http://milov.nl/code/css/verticalcenter.html">http://milov.nl/code/css/ver
>>>> ticalcenter.html</a>
>>>>
>>>>
>>>
>>>
>>
>>
>
> -
I've gotten myself really stuck with my css layout. I've
basically followed a couple of different tutorials to get where I
am. if you'll visit
http://eliteportraits.com/teetest/
you can see the effort so far. Where i'm stuck is the main content
block. I read different things on nesting div tags and can't figure
out how to do this with or without nested tags. I basically want a
white background for everything under the purple menu bar (I'd also
like that bar to extend to the edge of the top rounded white
graphic.). I ca't seem to make it work. what am I screwing
up/missing? is there a tutorial somewhere that can help? This is
the last thing I've got to figure out before I can finally move
forward. thanks so much for any help.
Markeliteportraits wrote:
> If you look to the logo on top of the page (above the
purple bar), there's
> text immediately to the right of the logo that says
"some menu links here, like
> shopping cart and such" - I would like that line of text
to sit on top of the
> purple bar (about 10px above the purple bar) and be
aligned to the right edge
> of the page. right now the text is aligned with the top
of the image.
Then you need to put that line of text in its own container,
a <div> <p>
<h> whatever. Lets just use another <div> for
now. Insert the new <div>
in your pages code, right after your logo image (see below)
<div id="top">
<img src="tutorial_files/logo.jpg">
<div id="topRight">some menu links here, like shopping
cart and
such</div><!-- end topRight -->
</div><!-- end top -->
Then use some css to style/position the new <div>
#topRight {
float: right;
width: 350px;
text-align: right;
padding-top: 65px;
Back-tracking on what I said yesterday about
relative/absolute
positioning you could also make the 'top' <div> have a
position of
relative and then the 'topRight' <div> a position of
absolute to place
it in the position required.
#top {
position: relative;
#topRight {
position: absolute;
top: 85px;
right: 0;
width: 350px;
text-align: right;
This is one of the only times you should need to use relative
positioning on a container i.e., when you require an
absolutely
positioned element to sit within it. However if there is an
alternative
way of achieving the same results then personally I would
always use
that method in preference. Many beginners just use relative
positioning
all over the place without really understanding what they are
doing. Not
all, but in the majority of cases, it is not required.
Don't be afraid to experiment with css to see what results
can be
achieved using various combinations. Once you grasp the
basics then the
rest will fall into place quite quickly.
The key is to think boxes being positioned by using
margin/padding.
Where people go wrong is they tend to use too many boxes
which results
in too many elements to keep track of or just plain don't do
the maths
needed to make css work.
Always comment the end of a container </div><!-- end
header --> or you
can put the comment inside the closing tag <!-- end header
--></div>
This will make it easier to identify them when the page gets
more complex. -
I guess I am "old school" in that I have always used tables
to lay out my web pages. I decided I must learn to do it with CSS,
but I'm having a terrible time (and it shouldn't be so hard!). I
understand how to define the styles, add divs, etc. Here's what I'm
having trouble with:
How do I specify the normal page width to be 800 pixels,
however I want it to be relative to the browser (i.e., 100% of 800
pixels).
I understand the "float" tag, but if I have a right-hand
sidebar, I can't seem to get the text to the left (in a div called
"maincontent") to stop at the sidebar and wrap to the next line. I
tried specifying "Hidden" as my textbook suggests, but that has no
effect.
I can easily do all of this with tables, so do I really need
to abandon them?
Thanks!Hi Jane,
I'll try to answer all your questions, then a tip or two to
stop the main
content from dropping when the browser window size is
reduced.
- " I didn't realize that
margin-top: 0px;
margin-right: auto;
is not the same as margin: 0px auto;
That's right.
margin: 0px auto; is actaully saying make the top margin 0,
the right margin
auto, the bottom margin 0 and the left margin auto.
It's just CSS shorthand.
For example, you might have:
margin-top: 10px;
margin-right: 20px;
margin-bottom: 5px;
margin-left:15px;
You could just use margin: {10px 20px 5px 15px;}
Think of a clock to remember the directions.
12:00 top, 3:00 right, 6:00 bottom, 9:00 left.
If any of the values are the same, you can shorten it more.
For example, if top is 10, right is 20, bottom is 5 and left
is 20, it's
margin: {10px 20px 5px;}
If the 4th location (left) is missing a value, it makes it
the same as what
you have for right.
If top and bottom are 10px, and left and right are 20px,
it's:
margin {10px 20px;}
If the last two positions ( bottom and left vlaues ) are
missing, then it
will use the top value for the bottom, and the right value
for the left.
What auto right and left is doing is subtracting your content
width (the
container width) from the browser window width, and then
dividing the
remainder in 2 and applying each value to each side of the
container.
-"I found that they all took on the font of the maincontent
and I had to fix
them
individually. "
The only text that should be Time is the text in your main
content, where
you have that font defined. Everything else should be Arial
if you define
the body as such. I'll post a link at the end of this.
- "I put my bold sentence (Friendship, Fun, etc.) in h1, but
I had to change
the
color & size, so that added another style element. "
You don't need to give the h1 a class. You can actually just
style the h1
tag:
h1 {
margin: 10px 10px 2px;
font-size: larger;
color: #941238;
You can only use h1 once on a page.
You can use h2, h3, h4, etc, as many times as you would like,
and you can
style these just like the h1 style above.
- "I don't quite understand the .rightsidebar p { and
container p{
I am assigning the spacing to the <p> tag? What exactly
is that doing?"
That is saying, give all the <p> tags inside the
rightsidebar container the
follwing style.
So, in this example:
.rightsidebar p {
font-size: 18px;
margin: 2px 10px;
it's saying give all the <p> tags in this container a
size of 18 and margin
of 2px top and bottom, and 10px left and right.
It's a lot easier than giving a class to every <p> tag
- "I also don't quite understand the .clear {
Why not just choose clear:both on the next section <div
class="footer">"
You could, if the footer was in the container. It just needs
to be the final
element before the close of a container that contains the
float(s).
-Do you use the <div class="container"> technique all
the time?
Yes, most of the time. I usually put everything in it, and
use the
margin:0px auto; to center it.
That way, I don't have to try to get a number of different
elements to align
with the right and left sides by applying values to all of
them, which can
get tricky quickly.
-"If you'll indulge me one more question, I wonder if it's
possible to put a
graphic (say, of a putting green) underneath my
rightsidebar? I would want
the sidebar to lay on top of the putting green for an
interesting artistic
touch.
Yes, you can give that div a background image. You just need
to make the div
the same size as the image so you see it all (or vice-versa).
Now, to make that maincontent not drop like it does you can
remove the width
in the CSS. Now it will expand over to the left edge of the
rightsidebar.
You can control how close it gets by giving the right sidebar
a bigger left
margin. The point is, with no width assigned, the maincontent
will shrink
down to the longest word in it before it drops.
Here's what it looks like:
http://tnsgraphics.com/test2.htm
Let me know if you have any questions.
Take care,
Tim
"janeinpa" <[email protected]> wrote in
message
news:[email protected]...
> Hi, Tim...
>
> You have been very kind to help me learn CSS! I very
much appreciate it
> and
> am really delighted to have gained a better
understanding of this. I
> studied
> all your suggestions and started the page from scratch.
Take a look here:
>
http://www.allisonwebcreations.com/ewga_site/good_page/indexgood.htm
I'm
> very
> pleased with it. I discovered a couple of things:
>
> I didn't realize that
> margin-top: 0px;
> margin-right: auto;
>
> is not the same as margin: 0px auto;
>
> are they two different codes? Anyway, it didn't center
until I fixed
> that.
>
> I understand what you're saying about the font codes
being redundant,
> however
> I found that they all took on the font of the
maincontent and I had to fix
> them
> individually. This must be an error in how I'm coding
it. Is the order
> in
> which I did them to blame? I put it in the order that
I'm reading it, but
> perhaps I should do it differently.
>
> I also couldn't get the footer to move left to the
margin. I'm not sure
> why,
> since I think I followed all your suggestions.
>
> I put my bold sentence (Friendship, Fun, etc.) in h1,
but I had to change
> the
> color & size, so that added another style element.
I'm afraid that
> probably
> isn't correct. I also couldn't have my normal content
text follow
> immediately
> on the same line. Maybe that isn't possible.
>
> I don't quite understand the .rightsidebar p { and
container p{
> I am assigning the spacing to the <p> tag? What
exactly is that doing?
>
> I also don't quite understand the .clear {
> Why not just choose clear:both on the next section
<div class="footer"> ?
>
> Do you use the <div class="container"> technique
all the time? How do you
> decide what goes in it -- just floating items or can I
think of it as a
> table
> that holds all my main blocks of info? Why not include
the footer in it?
>
> If you'll indulge me one more question, I wonder if it's
possible to put a
> graphic (say, of a putting green) underneath my
rightsidebar? I would
> want the
> sidebar to lay on top of the putting green for an
interesting artistic
> touch.
>
> Thank you, thank you, thank you again. Here are my css
codes (which I
> have in
> an external file. Is it better to import or link to the
file?)
>
> Have a wonderful New Year.
>
>
>
>
>
>
> .body {
> padding: 0px;
> margin-top: 0px;
> font-family: Arial, Helvetica, sans-serif;
> }
> .masthead {
> width: 780px;
> margin: 0px auto;
> padding-top: 10px;
> padding-right: 0px;
> }
> .maincontent {
> background-color: #FFFFFF;
> text-align: left;
> width: 60%;
> margin-top: 0px;
> padding-top: 10px;
> padding-right: 0px;
> font-family: "Times New Roman", Times, serif;
> font-size: medium;
> color: #000000;
> }
> .maincontent p{
> margin-top: 2px;
> margin-right: 10px;
>
> }
> .rightsidebar {
> font-size: small;
> background-color: #DEEBE4;
> text-align: center;
> float: right;
> width: 250px;
> margin-top: 10px;
> margin-left: 20px;
> border: thick solid #941238;
> font-family: Arial, Helvetica, sans-serif;
> padding: 10px;
>
> }
> .leftbox {
> font-size: small;
> font-style: italic;
> color: #336600;
> background-color: #DEEBE4;
> text-align: center;
> clear: both;
> width: 300px;
> margin-top: 50px;
> border: thin solid #941238;
> font-family: Arial, Helvetica, sans-serif;
> padding: 10px;
> }
> .footer {
> font-size: small;
> margin: 100px;
> font-family: Geneva, Arial, Helvetica, sans-serif;
> font-style: normal;
> }
> .container {
> width: 90%;
> margin: 0px auto;
> }
> .clear {
> font-size: 1px;
> line-height: 0px;
> clear: both;
> height: 0px;
> }
> .event {
> font-size: 24px;
> font-weight: bold;
> color: #00493E;
> }
> .upcomingdate {
> font-size: 20px;
> color: #990134;
> font-weight: bold;
> font-family: Arial, Helvetica, sans-serif;
> }
>
> .eventitem {
> font-size: 18px;
> color: #000000;
> font-weight: bold;
> margin: 0px;
> }
> .eventlink {
> font-size: 14px;
> font-style: italic;
> margin: 0px;
> }
> .smallboxhead {
> font-size: large;
> color: #00493E;
> font-style: normal;
> font-weight: bold;
> }
> .companyname {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: small;
> font-style: italic;
> color: 990134;
> }
> -
Help with CSS positioning of menu
Hello.
Am slowly making some progress following recent difficulties
with CSS.
At the moment things are finally looking the same on
different browsers EXCEPT the menu bar to the right of the movie:
http://www.notjustthenews.co.uk/page2_movies.html
Basically in Internet Explorer it's where I want it to be,
level with the top of the movie, but in Safari it drops down much
lower.
Is there anything I can do to stop this happening?
This is the CSS I'm using for the menu:
width: 300px;
height: 160px;
float: left;
margin-top: 40px;
margin-bottom: 0px;
margin-left: 85px;
display: block;
clear: none;There's room for much improvement.
#1 About APDivs and why you don't need (or want) them in primary layouts:
http://www.apptools.com/examples/pagelayout101.php
#2 You're complicating matters with repetitive class and id names on every element. It's better if you don't do this.
#3 Your CSS code is overly verbose. Less is more.
#4 I don't understand why you're using HTML5 but not using HTML5 tags for your content. For such a simple layout, this is all you need.
<body>
<header>logo and menu goes here </header>
<section>
<aside>left column content</aside>
<aside>right column content<aside>
</section>
<footer>footer goes here </footer>
</body>
Nancy O. -
Could anyone help with the query below. I posted this last
friday but never
got a reply. The original message that i posted is also
below. It might be
easier to read from the bottom up.
Thanks
James
----------------------------------->
Thanks for your reply.
I've changed my code as you suggested & now the content
div is coming about
half way down the page- so were getting somewhere. There are
floated
elements so I have added the 'clearthefloats' div. There are
no absolutely
positioned elements, but I tried making the content div
position:relative
anyway but it had no effect.
I also added some text into the 'clearthefloats' div so i
could see where it
was on the page & it is halfway down the page itself,
even though it is
below the other elements in the page.
Thanks,
James
"typist" <[email protected]> wrote in
message
news:[email protected]...
> How are you positioning what is inside your contentdiv?
Are the elements
> floated?
> IE will surround your floated elements, Firefox will not
unless you put a
> non-floated element after the floated ones, and clear
it.
>
> <div class="clearthefloats"> <!--
--></div> (I just put a comment in to
> hold
> the div)
>
> div.clearthefloats {clear:both:} (look up "Stylin' with
CSS" by Charles
> Wyke-Smith for more)
>
> But if you are putting absolutely positioned elements
into your div, then
> you
> need to make your content div position:relative. This
will make the
> elements
> position in the context of the content div instead of
the body.
>
ORIGINAL MESSAGE:
>>Hi,
>>I've got a page with css controlled div's. One of
them ('content') not
>>very
>>surprisingly contains all the page elements. For some
reason though, when
>>viewed in firefox the content div does not wrap round
it's contents (the
>>bg
>>of the page has a light purple color and the content
div is white). There
>>is
>>just a thin strip of white at the top where it
begins. It looks fine in
>>ie.
>>Here's the code for the content div:
>>#content {width:760px;
>> margin:0px auto;
>> background-image:url(images/logostrip.jpg);
>> background-position:top;
>> background-repeat:no-repeat;
>> background-color:#FFFFFF;
>> padding-bottom:10px }
>>I have tried defining the height, which works in
firefox, but then in ie
>>there is about 100px space at the bottom of the
content div. For some
>>reason
>>1000px in firefox is shorter than 1000px in ie???
>>Is there anything i am missing?
>>Thanks,
>>JamesYes I have tried setting the height. It should wrap round the
whole page
content not just the graphic. I tried setting the height till
it looked
right in firefox but then in ie there was about 150px extra
at the bottom.
(this was on another page which is a lot longer). Plus if i
set the height
to be right on the homepage, the other pages will be wrong. I
would have to
use seperate style sheets, or give the div's different id's.
Surely there is a way to get the div that all the contents
are in, to simply
wrap round them.
Thanks
"Nadia : **AdobeCommunityExpert**"
<[email protected]> wrote
in message news:[email protected]...
> Setting a height of 306px on that container, revealed
the whole graphic as
> per the visual in IE.
> I did this using the FFox edit CSS tool - but it should
work.
>
> --
> Nadia
> Adobe� Community Expert : Dreamweaver
> --------------------------------------------
>
http://www.csstemplates.com.au
- CSS Templates | Free Templates
> --------------------------------------------
>
http://www.perrelink.com.au
- Web Dev
>
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
>
http://www.adobe.com/devnet/dreamweaver/css.html
> -------------------------------------------------
> "Nadia : **AdobeCommunityExpert**"
<[email protected]>
> wrote in message
news:[email protected]...
>> Is that the graphics in the #container?
>> Have you tried setting a height on that container to
the height of your
>> header image?
>>
>> --
>> Nadia
>> Adobe� Community Expert : Dreamweaver
>> --------------------------------------------
>>
http://www.csstemplates.com.au
- CSS Templates | Free Templates
>> --------------------------------------------
>>
http://www.perrelink.com.au
- Web Dev
>>
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
>>
http://www.adobe.com/devnet/dreamweaver/css.html
>> -------------------------------------------------
>> "James D" <[email protected]> wrote
in message
>> news:[email protected]...
>>> Ok,
>>>
>>> please visit
http://www.beta-design.co.uk/ivesys_home_white/home.html
to
>>> see
>>> the page.
>>>
>>> If you view it in Firefox you will see a thin
white strip at the top.
>>> This
>>> should wrap round the page contents. It works in
IE. If you cannot
>>> access
>>> the css which is in an external file then please
repost and i will paste
>>> it
>>> all into a reply.
>>>
>>> Thanks
>>>
>>>
>>>
>>>
>>>
>>> "Osgood" <[email protected]>
wrote in message
>>> news:[email protected]...
>>>> James D wrote:
>>>>
>>>>> Could anyone help with the query below.
I posted this last friday but
>>>>> never
>>>>> got a reply. The original message that i
posted is also below. It
>>>>> might be
>>>>> easier to read from the bottom up.
>>>>
>>>> Its better to link to the complete page
rather than just supplying half
>>>> the story. If you do that its going to be
easier to identify the issue.
>>>> With the little information you have
supplied its not going to be
>>>> possible.
>>>>
>>>
>>>
>>
>>
>
> -
Problem with css processing in Firefox8 on Win7.
Hi guys. I have a problem with css processing in Firefox8 on Win7. I need to make div which width and left css properties should be dynamically changed. Inside this div i have an swf object. When i change width and left css styles for my div, it jumps on the page, but other browsers render that well. What can you suggest to fix this problem? Thanks
A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
The helpers at that forum are more knowledgeable about web development issues.<br />
You need to register at the mozillaZine forum site in order to post at that forum.<br />
See http://forums.mozillazine.org/viewforum.php?f=25 -
How do I create more than one CSS style for text links?
Hello,
Just like the title says, I need help with creating more than one CSS text link style in Dreamweaver CS4. For instance, I want the navigation on the website I'm building to have a different text link style than a link in some part of the body copy. I've been playing with Dreamweaver for a while and can't find any way to do this. If it's even possible to do this, I would really appreciate any help.Yes it is possible but as you have failed to provide a valid link to your site, I will tell you in general Terms:
1) First create a class or an ID to to your Nav bar;
2) Now style your navbar in such a way that these styles will only apply to your nav bar. To do this, you start your style by doing something like this:
ul#vavigation {.........}
ul#navigation a {.........}
ul#navigation a:hover {.........}
ul#navigation li {.........}
your html code might look like this:
<ul id="navigation">
<li><a href="#">Home</a></li>
etc etc .........................
</ul>
hth -
i accendentaly deleted my iphoto when i empty my trash. i think 1 year ago. i want it back but they say its difficult. now i think i'll buy iphoto to apps. what do you think guys??? ty and god bless!
A bunch of totally different questions
iPhoto is an application and it is in your applications folder - is it there? It must be in teh Applications folder on your boot drive - it can not be on an external drive
The photos are kept in the iPhoto library (by default and highly recommended) - is that what you deleted? It can be anyplace by by default it is in your pictrues folder
Time Machine is a backup program that backuse your your Mac - you do NOT directly access its backup files but you use the Time Machine application to restore files - see http://support.apple.com/kb/HT1427?viewlocale=en_US&locale=en_US for details
Your post is not at all clear as to what you have or what you want to do
If in fact you do have a copy of the photos on an external hard drive as you say you thikyou do them you launch iPhoto and import them to iPhoto (file menu import -- or drag them to the iPhoto icon in the Dock)
If you have a time machine backup of your iPhoto library and you want to use that then you launch TM and go to the time you wna tto restore from, select the iPhoto library and click restore
If the above does not cover what you have and what you want please post back with exact details of what you have and what you want to do
LN -
my mac is running slow, the spinning beach ball constantly appears. it seems that when i am in the apple store with fast wifi its a bit better. genius at the apple store checked the hard drive, it's all fine. what can it be? can it be a software issue with the wifi?
also i noted that it has only been doing this since quite recently, before it was fine
please help!First, back up all data immediately, as your boot drive might be failing.
Step 1
This diagnostic procedure will query the log for messages that may indicate a system issue. It changes nothing, and therefore will not, in itself, solve your problem.
If you have more than one user account, these instructions must be carried out as an administrator.
Triple-click anywhere in the line below on this page to select it:
syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|timed? ?o' | tail | open -ef
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key.
The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
Step 2
There are a few other possible causes of generalized slow performance that you can rule out easily.
Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
Reset the System Management Controller.
Run Software Update. If there's a firmware update, install it.
If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
If you have many image or video files on the Desktop with preview icons, move them to another folder.
If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
Check your keychains in Keychain Access for excessively duplicated items.
Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
Step 3
When you notice the problem, launch the Activity Monitor application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
Select the CPU tab of the Activity Monitor window.
Select All Processes from the View menu or the menu in the toolbar, if not already selected.
Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for User, System, and Idle at the bottom of the window.
Select the Memory tab. What value is shown in the bottom part of the window for Swap used?
Next, select the Disk tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in andWrites out.)
Step 4
If you have more than one user account, you must be logged in as an administrator to carry out this step.
Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
View ▹ Show Log List
from the menu bar.
Select the 50 or so most recent entries in the log. Copy them to the Clipboard by pressing the key combinationcommand-C. Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
When posting a log extract, be selective. Don't post more than is requested.
Please do not indiscriminately dump thousands of lines from the log into this discussion.
Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long. -
Hello and thanks in advance for your input. Years ago I
taught myself GoLive and am now making the change to Dreamweaver
CS3. I purchased it before CS4 was released so will have to upgrade
later. My question is this: I signed up for the Lynda.com online
classes to learn CS3 and notice that there are two different
tutorial categories, CS3 dated 4-07 and CS3 with CSS dated 3-08.
Are these two different programs? I purchased the design premium
suite and it lists Dreamweaver as CS3 and does not mention "with
CSS" in the title. I am not sure which tutorial program to use to
begin building my website and because it's Sunday they are not open
today. I am anxious to get started today, so would greatly
appreciate your insight. Thanks very much.Thanks for your reply.
Yes, they are two different tutorials and from what you
mention, I am assuming that the more recent tutorial simply focuses
on utilizing CSS to build the site more effectively than what is
probably taught with the first tutorial. From what you said, it
seems like I should first take the CSS tutorial to get the
foundation of my site as uniform as possible and then perhaps go
back and study the basic DW CS3 tutorial to help fill in the gaps.
The reason why I am making such a big deal with asking is
because I know the laying of the foundation on a site going in is
so important. Each tutorial is about 11 hours, so I just wanted to
spend my time efficiently. Thanks for the suggestion of going the
CSS route first.
Maybe you are looking for
-
Can i upgrade my laptop furthur ?
hey ! i am using HP Pavilion G6 2007tx laptop with 8gb ram 500gb hardisk and i guess 1 gb Radeon graphics and still m facing lags while gaming and post production i want to khow is there any way to expand my ram furthur 8gb and my graphics card to 2g
-
since you can no longer backup to disk, how to restore from external drive without losing all ratings and playlists?
-
1.4.2_02 to 1.4.2_04 prob
Hello! I have recently uninstalled jdk1.4.2_02 and installed jdk1.4.2_04, but when I go to start JWS, it says "Bad installation. Error invoking Java VM (SysExec) C:\Program Files\Java\j2re1.4.2_02\bin\javaw.exe" I have searched all files on my comput
-
4G U2 ipod (b&w screen)
When I plug the ipod into it's dock, I keep getting a message on the ipod screen saying 'no battery power remains' and a bleeping noise. The ipod shows up in itunes (briefly) but then it disappears and the screen just has the charging symbol but it w
-
My macbook keeps ejecting the install dvd at restart???
my macbook keeps ejecting the install dvd at restart???